mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 17:03:02 +08:00
Dispose previous WorkingBeatmap on change
This commit is contained in:
parent
9e33fb35e9
commit
f31d840c13
@ -296,6 +296,8 @@ namespace osu.Game
|
|||||||
if (nextBeatmap?.Track != null)
|
if (nextBeatmap?.Track != null)
|
||||||
nextBeatmap.Track.Completed += currentTrackCompleted;
|
nextBeatmap.Track.Completed += currentTrackCompleted;
|
||||||
|
|
||||||
|
beatmap.OldValue?.Dispose();
|
||||||
|
|
||||||
nextBeatmap?.LoadBeatmapAsync();
|
nextBeatmap?.LoadBeatmapAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user