mirror of
https://github.com/osukey/osukey.git
synced 2025-05-04 21:27:22 +09: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;
|
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…
x
Reference in New Issue
Block a user