Commit 3db94bb4 authored by Vasily Galkin's avatar Vasily Galkin Committed by Sébastien Wilmet

win32: lib shutdown on DLL_PROCESS_DETACH, not DLL_THREAD_DETACH

Release of global resources was accidently performed
on any thread exit instead of process exit/dll unload.
Premature releasing caused different stability problems.

This fixes GNOME/meld#192
Same issue at msys2 github -
https://github.com/Alexpux/MINGW-packages/issues/3510
parent 47676f6f
......@@ -166,7 +166,7 @@ DllMain (HINSTANCE hinstDLL,
gtksourceview_init ();
break;
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
gtksourceview_shutdown ();
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment