Fix bindings not being unbound on ModSelect

Resolves #2018.
Closes #2079.
This commit is contained in:
Dean Herbert
2018-02-27 20:45:32 +09:00
parent f76c6a47d2
commit 034875be47
2 changed files with 18 additions and 6 deletions

View File

@ -65,6 +65,14 @@ namespace osu.Game.Overlays.Mods
Ruleset.TriggerChange();
}
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);
Ruleset.UnbindAll();
SelectedMods.UnbindAll();
}
private void selectedModsChanged(IEnumerable<Mod> obj)
{
foreach (ModSection section in ModSectionsContainer.Children)