mirror of
https://github.com/ppy/osu
synced 2025-01-31 02:12:03 +00:00
Add missing unsubscriptions in multiple mania components
This commit is contained in:
parent
b09c00d71b
commit
0a49c8c5d6
@ -134,6 +134,9 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
|
|
||||||
protected override void Dispose(bool isDisposing)
|
protected override void Dispose(bool isDisposing)
|
||||||
{
|
{
|
||||||
|
// must happen before children are disposed in base call to prevent illegal accesses to the hit explosion pool.
|
||||||
|
NewResult -= OnNewResult;
|
||||||
|
|
||||||
base.Dispose(isDisposing);
|
base.Dispose(isDisposing);
|
||||||
|
|
||||||
if (skin != null)
|
if (skin != null)
|
||||||
|
@ -156,6 +156,9 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
|
|
||||||
protected override void Dispose(bool isDisposing)
|
protected override void Dispose(bool isDisposing)
|
||||||
{
|
{
|
||||||
|
// must happen before children are disposed in base call to prevent illegal accesses to the judgement pool.
|
||||||
|
NewResult -= OnNewResult;
|
||||||
|
|
||||||
base.Dispose(isDisposing);
|
base.Dispose(isDisposing);
|
||||||
|
|
||||||
if (currentSkin != null)
|
if (currentSkin != null)
|
||||||
|
Loading…
Reference in New Issue
Block a user