1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 12:50:42 +08:00

Merge pull request #28944 from bdach/mania-crash

Fix crash when adding mania notes right after changing timing point
This commit is contained in:
Dean Herbert
2024-07-19 16:58:54 +09:00
committed by GitHub
Unverified
@@ -9,6 +9,7 @@ using Humanizer;
using JetBrains.Annotations;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Extensions.ObjectExtensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
@@ -405,5 +406,13 @@ namespace osu.Game.Screens.Edit.Compose.Components
CommitIfPlacementActive();
}
}
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);
if (Beatmap.IsNotNull())
Beatmap.HitObjectAdded -= hitObjectAdded;
}
}
}