Alexandre Julliard : msctf: Don' t bother to free thread local storage at process exit.

Alexandre Julliard julliard at winehq.org
Thu May 16 13:55:06 CDT 2013


Module: wine
Branch: master
Commit: 460f898959937b48fd76f144a1c283083872df4e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=460f898959937b48fd76f144a1c283083872df4e

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu May 16 12:51:53 2013 +0200

msctf: Don't bother to free thread local storage at process exit.

---

 dlls/msctf/msctf.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/msctf/msctf.c b/dlls/msctf/msctf.c
index 109c3ab..0d4bd84 100644
--- a/dlls/msctf/msctf.c
+++ b/dlls/msctf/msctf.c
@@ -526,6 +526,7 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID fImpLoad)
             tlsIndex = TlsAlloc();
             break;
         case DLL_PROCESS_DETACH:
+            if (fImpLoad) break;
             TlsFree(tlsIndex);
             break;
     }




More information about the wine-cvs mailing list