mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 07:22:54 +08:00
Add null check for disposal safety
This commit is contained in:
parent
85c5c68dfa
commit
ba735584fa
@ -85,6 +85,8 @@ namespace osu.Game.Rulesets.Judgements
|
|||||||
protected override void Dispose(bool isDisposing)
|
protected override void Dispose(bool isDisposing)
|
||||||
{
|
{
|
||||||
base.Dispose(isDisposing);
|
base.Dispose(isDisposing);
|
||||||
|
|
||||||
|
if (skinSource != null)
|
||||||
skinSource.SourceChanged -= onSkinChanged;
|
skinSource.SourceChanged -= onSkinChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user