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>
oldstable
Sven Baars 2018-12-17 21:28:00 +01:00 committed by Alexandre Julliard
parent 7d268f7de4
commit b3b1033541
1 changed files with 1 additions and 0 deletions

View File

@ -480,6 +480,7 @@ HRESULT enumerate_mmdevices(EDataFlow flow, GUID *guids,
}
if(count == 0){
IMMDeviceCollection_Release(coll);
release_mmdevenum(devenum, init_hr);
return DS_OK;
}