[PATCH] dsound: Fix a memory leak (Valgrind).
Sven Baars
sven.wine at gmail.com
Mon Dec 17 14:28:00 CST 2018
Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
dlls/dsound/dsound_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/dsound/dsound_main.c b/dlls/dsound/dsound_main.c
index 8dd86e40ed..4e752be6ba 100644
--- a/dlls/dsound/dsound_main.c
+++ b/dlls/dsound/dsound_main.c
@@ -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;
}
--
2.17.1
More information about the wine-devel
mailing list