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

This commit is contained in:
Michael Stefaniuc 2007-10-22 22:46:05 +02:00 committed by Alexandre Julliard
parent ad99cb46c6
commit ca71287572
1 changed files with 1 additions and 0 deletions

View File

@ -573,6 +573,7 @@ static void ALSA_MixerExit(void)
EnterCriticalSection(&elem_crst);
TerminateThread(thread, 1);
refcnt = 0;
LeaveCriticalSection(&elem_crst);
}
TRACE("Cleaning up\n");