Fix DHOs being freed when not expected

This commit is contained in:
smoogipoo
2020-11-07 00:25:26 +09:00
parent 1c8d68676e
commit 3a4bd73823
3 changed files with 60 additions and 43 deletions

View File

@ -52,14 +52,14 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
});
}
protected override void FreeAfterUse()
public override void Free()
{
IndexInCurrentComboBindable.UnbindFrom(HitObject.IndexInCurrentComboBindable);
PositionBindable.UnbindFrom(HitObject.PositionBindable);
StackHeightBindable.UnbindFrom(HitObject.StackHeightBindable);
ScaleBindable.UnbindFrom(HitObject.ScaleBindable);
base.FreeAfterUse();
base.Free();
}
public override void Apply(HitObject hitObject)