winealsa.drv: Leave the CriticalSection before destroying it. Found by Smatch.

This commit is contained in:
Michael Stefaniuc 2007-10-22 22:45:54 +02:00 committed by Alexandre Julliard
parent 55fe39e07b
commit ad99cb46c6
1 changed files with 1 additions and 0 deletions

View File

@ -534,6 +534,7 @@ static ULONG WINAPI IDsCaptureDriverBufferImpl_Release(PIDSCDRIVERBUFFER iface)
TRACE("mmap buffer %p destroyed\n", This->mmap_buffer);
This->drv->capture_buffer = NULL;
LeaveCriticalSection(&This->pcm_crst);
This->pcm_crst.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&This->pcm_crst);