Commit a731eaa7 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

dsound: Free MMDevice on Release.

parent ec0043f0
......@@ -232,7 +232,8 @@ static ULONG DirectSoundDevice_Release(DirectSoundDevice * device)
IAudioRenderClient_Release(device->render);
if(device->volume)
IAudioStreamVolume_Release(device->volume);
if(device->mmdevice)
IMMDevice_Release(device->mmdevice);
HeapFree(GetProcessHeap(), 0, device->tmp_buffer);
HeapFree(GetProcessHeap(), 0, device->cp_buffer);
HeapFree(GetProcessHeap(), 0, device->buffer);
......
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