@@ -1901,13 +1901,11 @@ guarantee(_semaphore != NULL, err_msg("CreateSemaphore failed with error code: %lu", GetLastError())); } WindowsSemaphore::~WindowsSemaphore() { - if (_semaphore != NULL) { ::CloseHandle(_semaphore); - } } void WindowsSemaphore::signal(uint count) { if (count > 0) { BOOL ret = ::ReleaseSemaphore(_semaphore, count, NULL);