winealsa.drv: Leave the CriticalSection before destroying it. Found by Smatch.
This commit is contained in:
parent
55fe39e07b
commit
ad99cb46c6
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue