Commit e1cf7f78 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

On Windows, Delete the CriticalSection's we Initialize

parent ffac2b22
......@@ -189,6 +189,7 @@ shutdownAsyncIO(rtsBool wait_threads)
CloseHandle(completed_table_sema);
completed_table_sema = NULL;
}
DeleteCriticalSection(&queue_lock);
}
/*
......
......@@ -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;
}
......
......@@ -82,6 +82,7 @@ FreeWorkQueue ( WorkQueue* pq )
if ( pq->roomAvailable ) {
CloseHandle(pq->roomAvailable);
}
DeleteCriticalSection(&pq->queueLock);
free(pq);
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment