From e1cdbac5a0bcb113bfdf1fb86bbb7d725556845b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 19 Jan 2008 20:58:50 -0800 Subject: Close ALC first when exiting since devices might've been running when deleting stuff --- OpenAL32/OpenAL32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/OpenAL32.c b/OpenAL32/OpenAL32.c index f8db7125..71ebf0c0 100644 --- a/OpenAL32/OpenAL32.c +++ b/OpenAL32/OpenAL32.c @@ -42,10 +42,10 @@ BOOL APIENTRY DllMain(HANDLE hModule,DWORD ul_reason_for_call,LPVOID lpReserved) break; case DLL_PROCESS_DETACH: + ReleaseALC(); ReleaseALBuffers(); ReleaseALEffects(); ReleaseALFilters(); - ReleaseALC(); FreeALConfig(); ALTHUNK_EXIT(); DeleteCriticalSection(&_alMutex); @@ -62,10 +62,10 @@ static void my_deinit() if(once) return; once = AL_TRUE; + ReleaseALC(); ReleaseALBuffers(); ReleaseALEffects(); ReleaseALFilters(); - ReleaseALC(); FreeALConfig(); ALTHUNK_EXIT(); DeleteCriticalSection(&_alMutex); -- cgit v1.2.3