Alexandre Julliard : shell32: 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: d92a9264f3e788980aedb7f34d39761b2529f265
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d92a9264f3e788980aedb7f34d39761b2529f265

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

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

---

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

diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c
index 1507d4a..4c124bd 100644
--- a/dlls/shell32/shell32_main.c
+++ b/dlls/shell32/shell32_main.c
@@ -1279,7 +1279,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
         break;
 
     case DLL_PROCESS_DETACH:
-        shell32_hInstance = 0;
+        if (fImpLoad) break;
         SIC_Destroy();
         FreeChangeNotifications();
         break;




More information about the wine-cvs mailing list