mirror of https://github.com/ppy/osu
Fix leak due to not properly unbinding `SourceChanged` event on disposal
This commit is contained in:
parent
caa90bccc6
commit
ec040ff3fc
|
@ -101,7 +101,7 @@ protected override void Dispose(bool isDisposing)
|
||||||
base.Dispose(isDisposing);
|
base.Dispose(isDisposing);
|
||||||
|
|
||||||
if (skinManager != null)
|
if (skinManager != null)
|
||||||
skinManager.SourceChanged -= UpdateSkins;
|
skinManager.SourceChanged -= OnSourceChanged;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue