Alexandre Julliard : ws2_32: Don't bother to free memory at process exit.

Alexandre Julliard julliard at winehq.org
Wed May 15 14:20:00 CDT 2013


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed May 15 10:34:26 2013 +0200

ws2_32: Don't bother to free memory at process exit.

---

 dlls/ws2_32/socket.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index a6a1b4c..80b317a 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -897,9 +897,9 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID fImpLoad)
     case DLL_PROCESS_ATTACH:
         break;
     case DLL_PROCESS_DETACH:
+        if (fImpLoad) break;
         free_per_thread_data();
         DeleteCriticalSection(&csWSgetXXXbyYYY);
-        num_startup = 0;
         break;
     case DLL_THREAD_DETACH:
         free_per_thread_data();




More information about the wine-cvs mailing list