mirror of
https://github.com/reactos/wine.git
synced 2025-02-13 16:59:37 +00:00
dmusic: Fix memory leak in Direct Music object.
This commit is contained in:
parent
7b3863fec0
commit
d3fb586024
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user