mirror of
https://github.com/ppy/osu
synced 2025-02-06 05:12:12 +00:00
Fix HitObjectContainer not correctly unbinding from startTime fast enough
This commit is contained in:
parent
896aa7f3ea
commit
dd5b15c64f
@ -43,10 +43,20 @@ namespace osu.Game.Rulesets.UI
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
unbindStartTimeMap();
|
||||
}
|
||||
|
||||
public virtual void Clear(bool disposeChildren = true)
|
||||
{
|
||||
ClearInternal(disposeChildren);
|
||||
unbindStartTimeMap();
|
||||
}
|
||||
|
||||
private void unbindStartTimeMap()
|
||||
{
|
||||
foreach (var kvp in startTimeMap)
|
||||
kvp.Value.bindable.UnbindAll();
|
||||
startTimeMap.Clear();
|
||||
|
Loading…
Reference in New Issue
Block a user