mirror of
https://github.com/ppy/osu
synced 2025-01-20 21:10:49 +00:00
Add null check in SongSelect disposal for safety
This commit is contained in:
parent
75d0797cf8
commit
2c7492d717
@ -642,7 +642,9 @@ namespace osu.Game.Screens.Select
|
||||
base.Dispose(isDisposing);
|
||||
|
||||
decoupledRuleset.UnbindAll();
|
||||
music.TrackChanged -= ensureTrackLooping;
|
||||
|
||||
if (music != null)
|
||||
music.TrackChanged -= ensureTrackLooping;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user