From d5c78e3656cbc7410f333bfa80e2929947e6d0e5 Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 8 Mar 2005 07:36:56 +0000 Subject: compiler compatibility and bug fixes --- ptw32_processTerminate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ptw32_processTerminate.c') 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); -- cgit v1.2.3