summaryrefslogtreecommitdiff
path: root/rts/win32/IOManager.c
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-11-25 12:58:45 +0000
committerIan Lynagh <igloo@earth.li>2007-11-25 12:58:45 +0000
commite1cf7f788fe0e6ff984627641cfde2c17999de5d (patch)
treea4c5aa62715ddec8c4fa91c9f900d93759e83946 /rts/win32/IOManager.c
parentffac2b22970b1671ff0f06b231e36314459307d4 (diff)
downloadhaskell-e1cf7f788fe0e6ff984627641cfde2c17999de5d.tar.gz
On Windows, Delete the CriticalSection's we Initialize
Diffstat (limited to 'rts/win32/IOManager.c')
-rw-r--r--rts/win32/IOManager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rts/win32/IOManager.c b/rts/win32/IOManager.c
index 6e7cd25b7a..81dedda569 100644
--- a/rts/win32/IOManager.c
+++ b/rts/win32/IOManager.c
@@ -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;
}