dsound: Added missing LeaveCriticalSection (Coverity).

This commit is contained in:
Marcus Meissner 2011-10-16 13:09:44 +02:00 committed by Alexandre Julliard
parent f90d402610
commit 07d72eb570
1 changed files with 1 additions and 0 deletions

View File

@ -1036,6 +1036,7 @@ static HRESULT DirectSoundCaptureDevice_Initialize(
if(FAILED(hr)){
DeleteCriticalSection(&device->lock);
HeapFree(GetProcessHeap(), 0, device);
LeaveCriticalSection(&DSOUND_capturers_lock);
return DSERR_NODRIVER;
}