dsound: Free MMDevice on Release.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2017-06-25 10:42:46 +00:00 committed by Alexandre Julliard
parent ec0043f083
commit a731eaa705
1 changed files with 2 additions and 1 deletions

View File

@ -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);