diff options
author | Chris Robinson <[email protected]> | 2018-03-10 12:10:58 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-03-10 12:10:58 -0800 |
commit | dac93794491a9219ebdc6815244db76244f45b09 (patch) | |
tree | 2e821c0a7b68c594c0f084c8b1033bdb1a8b554a /router/router.c | |
parent | a6ddeaf5f190a3640f816a4767ffa8b10fbd1b5d (diff) |
Add methods to clean up althrd and altss data
Diffstat (limited to 'router/router.c')
-rw-r--r-- | router/router.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/router/router.c b/router/router.c index 0497a1d2..a0b554f4 100644 --- a/router/router.c +++ b/router/router.c @@ -64,7 +64,9 @@ BOOL APIENTRY DllMain(HINSTANCE UNUSED(module), DWORD reason, void* UNUSED(reser break; case DLL_THREAD_ATTACH: + break; case DLL_THREAD_DETACH: + althrd_thread_detach(); break; case DLL_PROCESS_DETACH: @@ -84,6 +86,8 @@ BOOL APIENTRY DllMain(HINSTANCE UNUSED(module), DWORD reason, void* UNUSED(reser if(LogFile && LogFile != stderr) fclose(LogFile); LogFile = NULL; + + althrd_deinit(); break; } return TRUE; |