rt: Delete Windows CRITICAL_SECTION in dtor

This commit is contained in:
Chris Peterson 2012-02-19 23:11:03 -08:00
parent 6b280c61ce
commit 159dfd7c3b

View File

@ -34,6 +34,7 @@ lock_and_signal::lock_and_signal()
lock_and_signal::~lock_and_signal() {
#if defined(__WIN32__)
CloseHandle(_event);
DeleteCriticalSection(&_cs);
#else
CHECKED(pthread_cond_destroy(&_cond));
CHECKED(pthread_mutex_destroy(&_mutex));