Module: wine Branch: oldstable Commit: 4530e6560110f9405ae2ae711416cd60ac1ee875 URL: https://source.winehq.org/git/wine.git/?a=commit;h=4530e6560110f9405ae2ae711...
Author: Sven Baars sven.wine@gmail.com Date: Mon Dec 17 21:28:00 2018 +0100
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 (cherry picked from commit b3b1033541286c249f1efe95643ea51383c81d0a) Signed-off-by: Michael Stefaniuc mstefani@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; }