1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-27 14:43:07 +08:00

Fix potential nullref on disposal

This commit is contained in:
Dean Herbert 2019-08-13 14:45:27 +09:00
parent ad24265730
commit de1ab56a2c

View File

@ -197,10 +197,13 @@ namespace osu.Game.Overlays
{ {
base.Dispose(isDisposing); base.Dispose(isDisposing);
if (beatmaps != null)
{
beatmaps.ItemAdded -= handleBeatmapAdded; beatmaps.ItemAdded -= handleBeatmapAdded;
beatmaps.ItemRemoved -= handleBeatmapRemoved; beatmaps.ItemRemoved -= handleBeatmapRemoved;
} }
} }
}
public enum TrackChangeDirection public enum TrackChangeDirection
{ {