diff options
Diffstat (limited to 'ptw32_processTerminate.c')
-rw-r--r-- | ptw32_processTerminate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ptw32_processTerminate.c b/ptw32_processTerminate.c index 51293a9..bd1ee7a 100644 --- a/ptw32_processTerminate.c +++ b/ptw32_processTerminate.c @@ -99,8 +99,10 @@ ptw32_processTerminate (void) LeaveCriticalSection (&ptw32_thread_reuse_lock); /* - * Destroy the global locks. + * Destroy the global locks and other objects. */ + (void) pthread_cond_destroy(&ptw32_once_control.cond); + (void) pthread_mutex_destroy(&ptw32_once_control.mtx); DeleteCriticalSection (&ptw32_spinlock_test_init_lock); DeleteCriticalSection (&ptw32_rwlock_test_init_lock); DeleteCriticalSection (&ptw32_cond_test_init_lock); |