mirror of
https://github.com/ppy/osu.git
synced 2025-02-27 12:42:55 +08:00
Fix potential nullref on disposal
This commit is contained in:
parent
ad24265730
commit
de1ab56a2c
@ -197,8 +197,11 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
base.Dispose(isDisposing);
|
base.Dispose(isDisposing);
|
||||||
|
|
||||||
beatmaps.ItemAdded -= handleBeatmapAdded;
|
if (beatmaps != null)
|
||||||
beatmaps.ItemRemoved -= handleBeatmapRemoved;
|
{
|
||||||
|
beatmaps.ItemAdded -= handleBeatmapAdded;
|
||||||
|
beatmaps.ItemRemoved -= handleBeatmapRemoved;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user