mirror of
https://github.com/ppy/osu.git
synced 2026-05-22 06:29:54 +08:00
Bind disposal
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user