Module: wine Branch: master Commit: 48536877fe4501d5dba78ffb2498ee4da2a5f17d URL: https://gitlab.winehq.org/wine/wine/-/commit/48536877fe4501d5dba78ffb2498ee4... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Sun Aug 27 16:25:14 2023 +0200 dmsynth: Avoid leaking master clock references. --- dlls/dmsynth/synthsink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/dmsynth/synthsink.c b/dlls/dmsynth/synthsink.c index cda44e82191..6c4f1ebecb6 100644 --- a/dlls/dmsynth/synthsink.c +++ b/dlls/dmsynth/synthsink.c @@ -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;