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:
parent
c312a2e53c
commit
fad9e73999
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user