mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 11:33:22 +08: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.
|
// beatmapset may have changed.
|
||||||
if (Preview != preview)
|
if (Preview != preview)
|
||||||
|
{
|
||||||
|
preview?.Dispose();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
AddInternal(preview);
|
AddInternal(preview);
|
||||||
loading = false;
|
loading = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user