aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-03-10 12:10:58 -0800
committerChris Robinson <[email protected]>2018-03-10 12:10:58 -0800
commitdac93794491a9219ebdc6815244db76244f45b09 (patch)
tree2e821c0a7b68c594c0f084c8b1033bdb1a8b554a /Alc/ALc.c
parenta6ddeaf5f190a3640f816a4767ffa8b10fbd1b5d (diff)
Add methods to clean up althrd and altss data
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 8a2f67aa..eee17768 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -813,6 +813,7 @@ BOOL APIENTRY DllMain(HINSTANCE hModule, DWORD reason, LPVOID lpReserved)
break;
case DLL_THREAD_DETACH:
+ althrd_thread_detach();
break;
case DLL_PROCESS_DETACH:
@@ -1260,6 +1261,8 @@ static void alc_deinit_safe(void)
if(LogFile != stderr)
fclose(LogFile);
LogFile = NULL;
+
+ althrd_deinit();
}
static void alc_deinit(void)