mirror of
https://github.com/ppy/osu
synced 2024-12-29 10:22:43 +00:00
Fix PlayButton
potentially not disposing an unused PreviewTrack
during load
This commit is contained in:
parent
786af81274
commit
6823282604
@ -147,7 +147,10 @@ namespace osu.Game.Overlays.BeatmapSet.Buttons
|
||||
{
|
||||
// beatmapset may have changed.
|
||||
if (Preview != preview)
|
||||
{
|
||||
preview?.Dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
AddInternal(preview);
|
||||
loading = false;
|
||||
|
Loading…
Reference in New Issue
Block a user