From 57612cdefce0a779a8db1f869b2cd8c9df575c85 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 9 Aug 2016 12:43:03 +0300 Subject: [PATCH] winmm: Free device format when closing a device (Valgrind). Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/winmm/waveform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c index 1915c217934..730851997e2 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; }