1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:52:54 +08:00

Ensure tracker is disposed

This commit is contained in:
smoogipoo 2021-02-10 20:09:45 +09:00
parent 4a405bb859
commit 6fff7c39da
2 changed files with 3 additions and 0 deletions

View File

@ -402,6 +402,8 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
if (client != null)
client.LoadRequested -= onLoadRequested;
modSettingChangeTracker?.Dispose();
}
private class UserModSelectOverlay : LocalPlayerModSelectOverlay

View File

@ -162,6 +162,7 @@ namespace osu.Game.Screens.Select.Details
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);
settingChangeTracker?.Dispose();
starDifficultyCancellationSource?.Cancel();
}