aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/OpenAL32.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/OpenAL32.c')
-rw-r--r--OpenAL32/OpenAL32.c4
1 files changed, 2 insertions, 2 deletions
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);