Commit ad99cb46 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent 55fe39e0
......@@ -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);
......
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