mirror of https://github.com/ppy/osu
Merge pull request #10160 from peppy/ss-dispose-null-check
Add null check in SongSelect disposal for safety
This commit is contained in:
commit
3e1c517700
|
@ -642,7 +642,9 @@ protected override void Dispose(bool isDisposing)
|
|||
base.Dispose(isDisposing);
|
||||
|
||||
decoupledRuleset.UnbindAll();
|
||||
music.TrackChanged -= ensureTrackLooping;
|
||||
|
||||
if (music != null)
|
||||
music.TrackChanged -= ensureTrackLooping;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue