Module: wine Branch: master Commit: 57612cdefce0a779a8db1f869b2cd8c9df575c85 URL: http://source.winehq.org/git/wine.git/?a=commit;h=57612cdefce0a779a8db1f869b...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Tue Aug 9 12:43:03 2016 +0300
winmm: Free device format when closing a device (Valgrind).
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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; }