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