aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 0cdb9da8..fe5eeecd 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -541,15 +541,15 @@ static void alc_deinit(void)
for(i = 0;BackendList[i].Deinit;i++)
BackendList[i].Deinit();
- if(LogFile != stderr)
- fclose(LogFile);
- LogFile = NULL;
-
tls_delete(LocalContext);
FreeALConfig();
ALTHUNK_EXIT();
DeleteCriticalSection(&g_csMutex);
+
+ if(LogFile != stderr)
+ fclose(LogFile);
+ LogFile = NULL;
}