1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 06:03:08 +08:00

Merge pull request #13397 from ekrctb/fix-event-not-unregistered

Fix registered event not unregistered on dispose
This commit is contained in:
Dean Herbert 2021-06-09 13:12:06 +09:00 committed by GitHub
commit 2f6227e0f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,5 +128,13 @@ namespace osu.Game.Rulesets.Osu.Skinning.Default
spmContainer.FadeIn(drawableSpinner.HitObject.TimeFadeIn);
}
}
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);
if (drawableSpinner != null)
drawableSpinner.ApplyCustomUpdateState -= updateStateTransforms;
}
}
}