1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 19:12:57 +08:00

avoid memory leak

This commit is contained in:
LeNitrous 2019-09-24 22:57:29 +08:00
parent 0bc59e17dc
commit 851e42a444

View File

@ -155,11 +155,13 @@ namespace osu.Game.Graphics.Containers
private class ScalingBackgroundScreen : BackgroundScreenDefault
{
private IBindable<WorkingBeatmap> beatmap;
[BackgroundDependencyLoader]
private void load(IBindable<WorkingBeatmap> beatmap)
{
beatmap.ValueChanged += _ => Next();
this.beatmap = beatmap.GetBoundCopy();
this.beatmap.ValueChanged += _ => Next();
}
public override void OnEntering(IScreen last)