winejack.drv: Fix missing unlock. Found by Smatch.

Michael Stefaniuc mstefani at redhat.de
Mon Jun 25 16:58:12 CDT 2007


---
 dlls/winejack.drv/audio.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/winejack.drv/audio.c b/dlls/winejack.drv/audio.c
index 7cba9a5..ae5d09c 100644
--- a/dlls/winejack.drv/audio.c
+++ b/dlls/winejack.drv/audio.c
@@ -1805,7 +1805,8 @@ int JACK_callback_wwi (nframes_t nframes, void *arg)
 #if JACK_CLOSE_HACK
 	if(wwi->in_use == FALSE)
 	{
-	  /* do nothing if nothing is being recorded */
+            /* do nothing if nothing is being recorded */
+            LeaveCriticalSection(&wwi->access_crst);
 	    return 0;
 	}
 #endif
-- 
1.5.0.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070625/7c494d13/attachment.pgp


More information about the wine-patches mailing list