From b3b1033541286c249f1efe95643ea51383c81d0a Mon Sep 17 00:00:00 2001 From: Sven Baars Date: Mon, 17 Dec 2018 21:28:00 +0100 Subject: [PATCH] dsound: Fix a memory leak (Valgrind). Signed-off-by: Sven Baars Signed-off-by: Andrew Eikum Signed-off-by: Alexandre Julliard --- 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 8dd86e40edc..4e752be6bae 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; }