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>
This commit is contained in:
parent
7deec68fd3
commit
57612cdefc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue