1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00

Fix PlayButton potentially not disposing an unused PreviewTrack during load

This commit is contained in:
Dean Herbert 2022-08-05 14:15:27 +09:00
parent 786af81274
commit 6823282604

View File

@ -147,7 +147,10 @@ namespace osu.Game.Overlays.BeatmapSet.Buttons
{
// beatmapset may have changed.
if (Preview != preview)
{
preview?.Dispose();
return;
}
AddInternal(preview);
loading = false;