[gtksourceview/gnome-3-24] win32: lib shutdown on DLL_PROCESS_DETACH, not DLL_THREAD_DETACH
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/gnome-3-24] win32: lib shutdown on DLL_PROCESS_DETACH, not DLL_THREAD_DETACH
- Date: Sun, 3 Jun 2018 14:43:37 +0000 (UTC)
commit 3db94bb4d753453d81ebfb21a878b87f1740296f
Author: Vasily Galkin <galkin-vv ya ru>
Date: Fri Jun 1 20:26:52 2018 +0000
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 https://gitlab.gnome.org/GNOME/meld/issues/192
Same issue at msys2 github -
https://github.com/Alexpux/MINGW-packages/issues/3510
gtksourceview/gtksourceview-init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtksourceview/gtksourceview-init.c b/gtksourceview/gtksourceview-init.c
index 02d596f6..c40e319b 100644
--- a/gtksourceview/gtksourceview-init.c
+++ b/gtksourceview/gtksourceview-init.c
@@ -166,7 +166,7 @@ DllMain (HINSTANCE hinstDLL,
gtksourceview_init ();
break;
- case DLL_THREAD_DETACH:
+ case DLL_PROCESS_DETACH:
gtksourceview_shutdown ();
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]