On Windows, Delete the CriticalSection's we Initialize
[ghc-hetmet.git] / rts / win32 / IOManager.c
index 6e7cd25..81dedda 100644 (file)
@@ -461,6 +461,8 @@ void ShutdownIOManager ( rtsBool wait_threads )
         }
         FreeWorkQueue(ioMan->workQueue);
         CloseHandle(ioMan->hExitEvent);
+        DeleteCriticalSection(&ioMan->active_work_lock);
+        DeleteCriticalSection(&ioMan->manLock);
         free(ioMan);
         ioMan = NULL;
     }