mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:42:55 +08:00
Add null check guards to unsubscriptions in Dispose()
This commit is contained in:
parent
04db80848b
commit
71c0216c55
@ -133,6 +133,8 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
protected override void Dispose(bool isDisposing)
|
protected override void Dispose(bool isDisposing)
|
||||||
{
|
{
|
||||||
base.Dispose(isDisposing);
|
base.Dispose(isDisposing);
|
||||||
|
|
||||||
|
if (skin != null)
|
||||||
skin.SourceChanged -= skinSourceChanged;
|
skin.SourceChanged -= skinSourceChanged;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -110,6 +110,8 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
protected override void Dispose(bool isDisposing)
|
protected override void Dispose(bool isDisposing)
|
||||||
{
|
{
|
||||||
base.Dispose(isDisposing);
|
base.Dispose(isDisposing);
|
||||||
|
|
||||||
|
if (skin != null)
|
||||||
skin.SourceChanged -= skinSourceChanged;
|
skin.SourceChanged -= skinSourceChanged;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user