dsound: Added missing LeaveCriticalSection (Coverity).
This commit is contained in:
parent
f90d402610
commit
07d72eb570
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue