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