1
0
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:
Dean Herbert 2020-11-19 14:04:43 +09:00
parent 85c5c68dfa
commit ba735584fa

View File

@ -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;
} }