[PATCH] dsound: Free MMDevice on Release
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Sun Jun 25 05:42:46 CDT 2017
Fixes part of https://bugs.winehq.org/show_bug.cgi?id=36359
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
dlls/dsound/dsound.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/dsound/dsound.c b/dlls/dsound/dsound.c
index e8c10a70a2..a8b20b1dd1 100644
--- a/dlls/dsound/dsound.c
+++ b/dlls/dsound/dsound.c
@@ -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);
--
2.11.0
More information about the wine-patches
mailing list