mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 08:30:44 +00:00
dmsynth: Avoid leaking master clock references.
This commit is contained in:
parent
be2cdd3cb2
commit
48536877fe
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue