mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 16:32:54 +08:00
Explicity dispose osuGame instances
This commit is contained in:
parent
6ab9f645a2
commit
cf9a5baafa
@ -51,7 +51,10 @@ namespace osu.Game.Tests.Visual.Menus
|
|||||||
AddStep("Create new game instance", () =>
|
AddStep("Create new game instance", () =>
|
||||||
{
|
{
|
||||||
if (osuGame != null)
|
if (osuGame != null)
|
||||||
|
{
|
||||||
Remove(osuGame);
|
Remove(osuGame);
|
||||||
|
osuGame.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
osuGame = new TestOsuGame();
|
osuGame = new TestOsuGame();
|
||||||
osuGame.SetHost(gameHost);
|
osuGame.SetHost(gameHost);
|
||||||
|
@ -316,10 +316,6 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
private void next(bool instant = false)
|
private void next(bool instant = false)
|
||||||
{
|
{
|
||||||
// beatmapSets doesn't get populated until loading has completed.
|
|
||||||
if (!IsLoaded)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (!instant)
|
if (!instant)
|
||||||
queuedDirection = TransformDirection.Next;
|
queuedDirection = TransformDirection.Next;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user