mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 02:28:19 +00:00
dmband: Fix a memory leak.
This commit is contained in:
parent
77fe86620c
commit
8086079b2f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue