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:
Alistair Leslie-Hughes 2020-01-21 22:24:46 +01:00 committed by Alexandre Julliard
parent 4915c51ea6
commit 55827134d1
1 changed files with 3 additions and 1 deletions

View File

@ -531,7 +531,9 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_FreePMsg(IDirectMusicPerforma
DMUS_ItemRemoveFromQueue( This, pItem );
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);
return S_OK;
}