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

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

parent ad99cb46
......@@ -573,6 +573,7 @@ static void ALSA_MixerExit(void)
EnterCriticalSection(&elem_crst);
TerminateThread(thread, 1);
refcnt = 0;
LeaveCriticalSection(&elem_crst);
}
TRACE("Cleaning up\n");
......
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