Module: wine Branch: master Commit: b28512f6c7ac325fce63003a1c6cdbfed34a589e URL: https://source.winehq.org/git/wine.git/?a=commit;h=b28512f6c7ac325fce63003a1... Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Mon Mar 16 06:59:22 2020 +0000 dmime: Free more interfaces in IDirectMusicPerformance FreePMsg. Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dmime/performance.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/dmime/performance.c b/dlls/dmime/performance.c index b7b71637a1..f535fe888f 100644 --- a/dlls/dmime/performance.c +++ b/dlls/dmime/performance.c @@ -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);