dmusic: Fix memory leak in Direct Music object.

This commit is contained in:
Christian Costa 2012-01-22 15:10:28 +01:00 committed by Alexandre Julliard
parent 7b3863fec0
commit d3fb586024
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}