openal32: Delete the static critical section when unloading the dll.

Francois Gouget fgouget at codeweavers.com
Thu Nov 17 02:53:26 CST 2011


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

diff --git a/dlls/openal32/openal.c b/dlls/openal32/openal.c
index ec4149c..d3ff07d 100644
--- a/dlls/openal32/openal.c
+++ b/dlls/openal32/openal.c
@@ -106,6 +106,8 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
         LOADFUNC(alcGetThreadContext);
 #undef LOADFUNC
         break;
+    case DLL_PROCESS_DETACH:
+        DeleteCriticalSection(&openal_cs);
     }
 
     return TRUE;
-- 
1.7.7.1




More information about the wine-patches mailing list