dmime: IDirectMusicPerformance8_FreePMsg Release the unknown pointer.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4915c51ea6
commit
55827134d1
|
@ -531,7 +531,9 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_FreePMsg(IDirectMusicPerforma
|
||||||
DMUS_ItemRemoveFromQueue( This, pItem );
|
DMUS_ItemRemoveFromQueue( This, pItem );
|
||||||
LeaveCriticalSection(&This->safe);
|
LeaveCriticalSection(&This->safe);
|
||||||
|
|
||||||
/** TODO: see if we should Release the pItem->pMsg->punkUser and others Interfaces */
|
if (pPMSG->punkUser)
|
||||||
|
IUnknown_Release(pPMSG->punkUser);
|
||||||
|
|
||||||
HeapFree(GetProcessHeap(), 0, pItem);
|
HeapFree(GetProcessHeap(), 0, pItem);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue