1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 19:27:26 +08:00

Explicity dispose osuGame instances

This commit is contained in:
David Zhao 2019-08-07 14:51:24 +09:00
parent 6ab9f645a2
commit cf9a5baafa
2 changed files with 3 additions and 4 deletions

View File

@ -51,7 +51,10 @@ namespace osu.Game.Tests.Visual.Menus
AddStep("Create new game instance", () =>
{
if (osuGame != null)
{
Remove(osuGame);
osuGame.Dispose();
}
osuGame = new TestOsuGame();
osuGame.SetHost(gameHost);

View File

@ -316,10 +316,6 @@ namespace osu.Game.Overlays
private void next(bool instant = false)
{
// beatmapSets doesn't get populated until loading has completed.
if (!IsLoaded)
return;
if (!instant)
queuedDirection = TransformDirection.Next;