Commit b3b10335 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

dsound: Fix a memory leak (Valgrind).

parent 7d268f7d
...@@ -480,6 +480,7 @@ HRESULT enumerate_mmdevices(EDataFlow flow, GUID *guids, ...@@ -480,6 +480,7 @@ HRESULT enumerate_mmdevices(EDataFlow flow, GUID *guids,
} }
if(count == 0){ if(count == 0){
IMMDeviceCollection_Release(coll);
release_mmdevenum(devenum, init_hr); release_mmdevenum(devenum, init_hr);
return DS_OK; return DS_OK;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment