diff options
author | Chris Robinson <[email protected]> | 2010-07-22 09:16:28 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-07-22 09:16:28 -0700 |
commit | e0d0edc0fc24b099cfc794d1a0cd7a6aad55e871 (patch) | |
tree | 98f803d51b21669c418117d5b9b599a549cfd7a7 /Alc | |
parent | 7eb124d99c2cde0ba27c90d01176b34249958974 (diff) |
Close the log file last during shutdown
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |