strmbase: Unset Spare[0] before deleting non-static critical sections.

This commit is contained in:
Francois Gouget 2011-11-14 11:32:32 +01:00 committed by Alexandre Julliard
parent 0caef81de2
commit 76b64d9a4a

View file

@ -127,6 +127,7 @@ HRESULT WINAPI OutputQueue_Destroy(OutputQueue *pOutputQueue)
SetEvent(pOutputQueue->hProcessQueue); SetEvent(pOutputQueue->hProcessQueue);
LeaveCriticalSection(&pOutputQueue->csQueue); LeaveCriticalSection(&pOutputQueue->csQueue);
pOutputQueue->csQueue.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&pOutputQueue->csQueue); DeleteCriticalSection(&pOutputQueue->csQueue);
CloseHandle(pOutputQueue->hProcessQueue); CloseHandle(pOutputQueue->hProcessQueue);