Commit 96168370 authored by Jörg Höhle's avatar Jörg Höhle Committed by Alexandre Julliard

winmm: Fix memory leak in msacm error path.

parent 7fed7383
......@@ -1195,6 +1195,7 @@ static LRESULT WINMM_PrepareHeader(HWAVE hwave, WAVEHDR *header)
mr = acmStreamPrepareHeader(device->acm_handle, ash, 0);
if(mr != MMSYSERR_NOERROR){
HeapFree(GetProcessHeap(), 0, ash);
LeaveCriticalSection(&device->lock);
return mr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment