From d3fb586024cad4d2f9e7bb3a51346f9e7e1cb7c2 Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Sun, 22 Jan 2012 15:10:28 +0100 Subject: [PATCH] dmusic: Fix memory leak in Direct Music object. --- dlls/dmusic/dmusic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/dmusic/dmusic.c b/dlls/dmusic/dmusic.c index 09c63eaf404..e4678e13957 100644 --- a/dlls/dmusic/dmusic.c +++ b/dlls/dmusic/dmusic.c @@ -56,6 +56,7 @@ static ULONG WINAPI IDirectMusic8Impl_Release (LPDIRECTMUSIC8 iface) { TRACE("(%p)->(ref before=%u)\n", This, refCount + 1); if (!refCount) { + HeapFree(GetProcessHeap(), 0, This->ppPorts); HeapFree(GetProcessHeap(), 0, This); }