mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Add null check guards to unsubscriptions in Dispose()
This commit is contained in:
@ -133,7 +133,9 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
protected override void Dispose(bool isDisposing)
|
protected override void Dispose(bool isDisposing)
|
||||||
{
|
{
|
||||||
base.Dispose(isDisposing);
|
base.Dispose(isDisposing);
|
||||||
skin.SourceChanged -= skinSourceChanged;
|
|
||||||
|
if (skin != null)
|
||||||
|
skin.SourceChanged -= skinSourceChanged;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -110,7 +110,9 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
protected override void Dispose(bool isDisposing)
|
protected override void Dispose(bool isDisposing)
|
||||||
{
|
{
|
||||||
base.Dispose(isDisposing);
|
base.Dispose(isDisposing);
|
||||||
skin.SourceChanged -= skinSourceChanged;
|
|
||||||
|
if (skin != null)
|
||||||
|
skin.SourceChanged -= skinSourceChanged;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user