mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 14:16:05 +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…
Reference in a new issue