winmm: Fix memory leak in msacm error path.

This commit is contained in:
Jörg Höhle 2011-07-27 23:44:09 +02:00 committed by Alexandre Julliard
parent 7fed738353
commit 961683704b
1 changed files with 1 additions and 0 deletions

View File

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