mirror of
https://github.com/ppy/osu
synced 2025-02-11 07:37:26 +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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void Dispose(bool isDisposing)
|
||||||
|
{
|
||||||
|
base.Dispose(isDisposing);
|
||||||
|
unbindStartTimeMap();
|
||||||
|
}
|
||||||
|
|
||||||
public virtual void Clear(bool disposeChildren = true)
|
public virtual void Clear(bool disposeChildren = true)
|
||||||
{
|
{
|
||||||
ClearInternal(disposeChildren);
|
ClearInternal(disposeChildren);
|
||||||
|
unbindStartTimeMap();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void unbindStartTimeMap()
|
||||||
|
{
|
||||||
foreach (var kvp in startTimeMap)
|
foreach (var kvp in startTimeMap)
|
||||||
kvp.Value.bindable.UnbindAll();
|
kvp.Value.bindable.UnbindAll();
|
||||||
startTimeMap.Clear();
|
startTimeMap.Clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user