Jörg Höhle : winmm: Fix memory leak in msacm error path.
Alexandre Julliard
julliard at winehq.org
Fri Aug 5 10:20:49 CDT 2011
Module: wine
Branch: master
Commit: 961683704bd13194b22e34147fcdad885bdf241f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=961683704bd13194b22e34147fcdad885bdf241f
Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date: Wed Jul 27 23:44:09 2011 +0200
winmm: Fix memory leak in msacm error path.
---
dlls/winmm/waveform.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c
index 72eec27..160395c 100644
--- a/dlls/winmm/waveform.c
+++ b/dlls/winmm/waveform.c
@@ -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;
}
More information about the wine-cvs
mailing list