Alistair Leslie-Hughes : dsound: Free MMDevice on Release.

Alexandre Julliard julliard at winehq.org
Tue Jun 27 17:19:07 CDT 2017


Module: wine
Branch: master
Commit: a731eaa705dc844f484f4e8153e73ddb9dcade52
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a731eaa705dc844f484f4e8153e73ddb9dcade52

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Sun Jun 25 10:42:46 2017 +0000

dsound: Free MMDevice on Release.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 e8c10a7..a8b20b1 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);




More information about the wine-cvs mailing list