dmband: Fix a memory leak
Andrew Talbot
andrew.talbot at talbotville.com
Tue Sep 18 16:58:29 CDT 2007
Changelog:
dmband: Fix a memory leak.
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_IPer
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;
More information about the wine-patches
mailing list