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:
Nikolay Sivov 2016-08-09 12:43:03 +03:00 committed by Alexandre Julliard
parent 7deec68fd3
commit 57612cdefc
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}