diff --git a/dlls/openal32/openal.c b/dlls/openal32/openal.c index ec4149ceacb..d3ff07d68aa 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;