From dac93794491a9219ebdc6815244db76244f45b09 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 10 Mar 2018 12:10:58 -0800 Subject: Add methods to clean up althrd and altss data --- Alc/ALc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Alc') 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) -- cgit v1.2.3