Commit 48536877 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dmsynth: Avoid leaking master clock references.

parent be2cdd3c
...@@ -125,6 +125,7 @@ static HRESULT WINAPI synth_sink_SetMasterClock(IDirectMusicSynthSink *iface, ...@@ -125,6 +125,7 @@ static HRESULT WINAPI synth_sink_SetMasterClock(IDirectMusicSynthSink *iface,
if (This->active) if (This->active)
return E_FAIL; return E_FAIL;
if (This->master_clock) IReferenceClock_Release(This->master_clock);
IReferenceClock_AddRef(clock); IReferenceClock_AddRef(clock);
This->master_clock = clock; This->master_clock = clock;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment