Michael Stefaniuc : winealsa.drv: Leave the CriticalSection before destroying it. Found by Smatch.
Module: wine Branch: master Commit: ad99cb46c676c517b957e18a78e51bb5fe95883d URL: http://source.winehq.org/git/wine.git/?a=commit;h=ad99cb46c676c517b957e18a78... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon Oct 22 22:45:54 2007 +0200 winealsa.drv: Leave the CriticalSection before destroying it. Found by Smatch. --- dlls/winealsa.drv/dscapture.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/winealsa.drv/dscapture.c b/dlls/winealsa.drv/dscapture.c index 3e6984a..168fc91 100644 --- a/dlls/winealsa.drv/dscapture.c +++ b/dlls/winealsa.drv/dscapture.c @@ -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);
participants (1)
-
Alexandre Julliard