[PATCH] winmm: Free device format when closing a device (Valgrind)
Nikolay Sivov
nsivov at codeweavers.com
Tue Aug 9 04:43:03 CDT 2016
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/winmm/waveform.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c
index 1915c21..7308519 100644
--- a/dlls/winmm/waveform.c
+++ b/dlls/winmm/waveform.c
@@ -1418,6 +1418,8 @@ static HRESULT WINMM_CloseDevice(WINMM_Device *device)
IAudioClock_Release(device->clock);
device->clock = NULL;
+ HeapFree(GetProcessHeap(), 0, device->orig_fmt);
+
return S_OK;
}
--
2.8.1
More information about the wine-patches
mailing list