1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 04:02:57 +08:00

Fix delegate leak

This commit is contained in:
Bartłomiej Dach 2023-05-05 20:33:27 +02:00
parent f536238554
commit e808a47811
No known key found for this signature in database

View File

@ -174,5 +174,13 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
AddHeader("Velocity range");
AddValue($"{sliderVelocities.First():#,0.00}x - {sliderVelocities.Last():#,0.00}x");
}
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);
EditorBeatmap.TransactionBegan -= updateInspectorText;
EditorBeatmap.TransactionEnded -= updateInspectorText;
}
}
}