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:
parent
3094a8267f
commit
b803e40a7d
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user