Sven Baars : dsound: Fix a memory leak (Valgrind).
Alexandre Julliard
julliard at winehq.org
Wed Dec 19 16:04:43 CST 2018
Module: wine
Branch: master
Commit: b3b1033541286c249f1efe95643ea51383c81d0a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b3b1033541286c249f1efe95643ea51383c81d0a
Author: Sven Baars <sven.wine at gmail.com>
Date: Mon Dec 17 21:28:00 2018 +0100
dsound: Fix a memory leak (Valgrind).
Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 8dd86e4..4e752be 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;
}
More information about the wine-cvs
mailing list