[PATCH] dmusic: Fix memory leak in Direct Music object
Christian Costa
titan.costa at gmail.com
Sun Jan 22 08:10:28 CST 2012
This fixes first Valgrind warning of bug 25947.
---
dlls/dmusic/dmusic.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/dmusic/dmusic.c b/dlls/dmusic/dmusic.c
index 09c63ea..e4678e1 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);
}
More information about the wine-patches
mailing list