mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 02:32:55 +08:00
Aggressively dispose ownedBackground if it was not used, because we can
This commit is contained in:
parent
e9d4e4d1d5
commit
550ef3f133
@ -185,6 +185,7 @@ namespace osu.Game.Screens
|
||||
if (background != ownedBackground)
|
||||
{
|
||||
// background may have not been replaced, at which point we don't want to track the background lifetime.
|
||||
ownedBackground?.Dispose();
|
||||
ownedBackground = null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user