dsound: Fix a memory leak (Valgrind).
Signed-off-by: Sven Baars <sven.wine@gmail.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7d268f7de4
commit
b3b1033541
|
@ -480,6 +480,7 @@ HRESULT enumerate_mmdevices(EDataFlow flow, GUID *guids,
|
||||||
}
|
}
|
||||||
|
|
||||||
if(count == 0){
|
if(count == 0){
|
||||||
|
IMMDeviceCollection_Release(coll);
|
||||||
release_mmdevenum(devenum, init_hr);
|
release_mmdevenum(devenum, init_hr);
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue