dmime: Free more interfaces in IDirectMusicPerformance FreePMsg.

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-03-16 06:59:22 +00:00 committed by Alexandre Julliard
parent 04fe670aa6
commit b28512f6c7
1 changed files with 6 additions and 0 deletions

View File

@ -535,6 +535,12 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_FreePMsg(IDirectMusicPerforma
DMUS_ItemRemoveFromQueue( This, pItem );
LeaveCriticalSection(&This->safe);
if (pPMSG->pTool)
IDirectMusicTool_Release(pPMSG->pTool);
if (pPMSG->pGraph)
IDirectMusicGraph_Release(pPMSG->pGraph);
if (pPMSG->punkUser)
IUnknown_Release(pPMSG->punkUser);