dmusic: Release the clock when destroying the IDirectMusic8 object.

This commit is contained in:
Michael Stefaniuc 2014-05-31 19:20:55 +02:00 committed by Alexandre Julliard
parent 19eba06a26
commit d82e2935e4
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ static ULONG WINAPI IDirectMusic8Impl_Release(LPDIRECTMUSIC8 iface)
TRACE("(%p)->(): new ref = %u\n", This, ref);
if (!ref) {
IReferenceClock_Release(&This->pMasterClock->IReferenceClock_iface);
HeapFree(GetProcessHeap(), 0, This->system_ports);
HeapFree(GetProcessHeap(), 0, This->ppPorts);
HeapFree(GetProcessHeap(), 0, This);