[PATCH] dmime: IDirectMusicPerformance8_FreePMsg Release the unknown pointer.
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Tue Dec 17 23:17:03 CST 2019
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
dlls/dmime/performance.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/dmime/performance.c b/dlls/dmime/performance.c
index 9dbb469f388..a63bd3b4517 100644
--- a/dlls/dmime/performance.c
+++ b/dlls/dmime/performance.c
@@ -479,7 +479,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;
}
--
2.24.0
More information about the wine-devel
mailing list