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:
parent
0bc59e17dc
commit
851e42a444
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user