1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 20:59:35 +08:00

Unbind from room values when disposing

This commit is contained in:
DrabWeb 2017-05-24 17:02:28 -03:00
parent 3094a8267f
commit b803e40a7d

View File

@ -245,5 +245,15 @@ namespace osu.Game.Screens.Multiplayer
beatmapArtist.Text = string.Empty;
}
}
protected override void Dispose(bool isDisposing)
{
Room.Name.ValueChanged -= displayName;
Room.Host.ValueChanged -= displayUser;
Room.Status.ValueChanged -= displayStatus;
Room.Beatmap.ValueChanged -= displayBeatmap;
base.Dispose(isDisposing);
}
}
}