mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 08:08:04 +02:00
Win32: Avoid library finalization on process termination
Library finalization should be done only for explicit library unloads (dlclose / FreeLibrary), not for process termination.
This commit is contained in:
parent
1e5740c756
commit
995c09ba67
1 changed files with 3 additions and 1 deletions
|
|
@ -90,7 +90,9 @@ cairo_win32_tls_callback (PVOID hinstance, DWORD dwReason, PVOID lpvReserved)
|
|||
break;
|
||||
|
||||
case DLL_PROCESS_DETACH:
|
||||
CAIRO_MUTEX_FINALIZE ();
|
||||
if (lpvReserved == NULL) {
|
||||
CAIRO_MUTEX_FINALIZE ();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue