Alistair Leslie-Hughes : dmime: Free more interfaces in IDirectMusicPerformance FreePMsg.

Alexandre Julliard julliard at winehq.org
Tue Mar 17 17:21:08 CDT 2020


Module: wine
Branch: master
Commit: b28512f6c7ac325fce63003a1c6cdbfed34a589e
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b28512f6c7ac325fce63003a1c6cdbfed34a589e

Author: Alistair Leslie-Hughes <leslie_alistair at 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 at hotmail.com>
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at 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);
 




More information about the wine-cvs mailing list