dmsynth: Avoid leaking master clock references.

This commit is contained in:
Rémi Bernon 2023-08-27 16:25:14 +02:00 committed by Alexandre Julliard
parent be2cdd3cb2
commit 48536877fe

View file

@ -125,6 +125,7 @@ static HRESULT WINAPI synth_sink_SetMasterClock(IDirectMusicSynthSink *iface,
if (This->active)
return E_FAIL;
if (This->master_clock) IReferenceClock_Release(This->master_clock);
IReferenceClock_AddRef(clock);
This->master_clock = clock;