Andrew Talbot : dmband: Fix a memory leak.
Module: wine Branch: master Commit: 8086079b2fb722531c9f718d3c41033b90c8b2ce URL: http://source.winehq.org/git/wine.git/?a=commit;h=8086079b2fb722531c9f718d3c... Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Tue Sep 18 22:58:29 2007 +0100 dmband: Fix a memory leak. --- dlls/dmband/band.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/dmband/band.c b/dlls/dmband/band.c index 4cd5b42..067fc38 100644 --- a/dlls/dmband/band.c +++ b/dlls/dmband/band.c @@ -463,6 +463,8 @@ static HRESULT IDirectMusicBandImpl_IPersistStream_ParseInstrument (LPPERSISTSTR hr = IDirectMusicObject_QueryInterface (pObject, &IID_IDirectMusicCollection, (void**) &pCol); if (FAILED(hr)) { ERR(": failed to get IDirectMusicCollection Interface from DMObject\n"); + HeapFree(GetProcessHeap(), 0, pNewInstrument); + return hr; } pNewInstrument->ppReferenceCollection = pCol;
participants (1)
-
Alexandre Julliard