aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-07-22 09:16:28 -0700
committerChris Robinson <[email protected]>2010-07-22 09:16:28 -0700
commite0d0edc0fc24b099cfc794d1a0cd7a6aad55e871 (patch)
tree98f803d51b21669c418117d5b9b599a549cfd7a7 /Alc
parent7eb124d99c2cde0ba27c90d01176b34249958974 (diff)
Close the log file last during shutdown
Diffstat (limited to 'Alc')
-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;
}