1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 08:55:35 +08:00

Add null check in disposal clause

This commit is contained in:
Dean Herbert 2019-05-14 17:08:42 +09:00
parent c312a2e53c
commit fad9e73999

View File

@ -65,7 +65,7 @@ namespace osu.Game.Overlays
protected override void Dispose(bool isDisposing) protected override void Dispose(bool isDisposing)
{ {
base.Dispose(isDisposing); base.Dispose(isDisposing);
API.Unregister(this); API?.Unregister(this);
} }
public virtual void APIStateChanged(IAPIProvider api, APIState state) public virtual void APIStateChanged(IAPIProvider api, APIState state)