1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-19 12:07:28 +08:00

Bind disposal

This commit is contained in:
smoogipoo 2019-08-29 16:31:40 +09:00
parent 5db813b7a4
commit dad0fa2dca

View File

@ -75,5 +75,16 @@ namespace osu.Game.Rulesets.Edit
drawableRuleset.Playfield.Remove(drawableObject);
drawableRuleset.Playfield.PostProcess();
}
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);
if (beatmap != null)
{
beatmap.HitObjectAdded -= addHitObject;
beatmap.HitObjectRemoved -= removeHitObject;
}
}
}
}