Hello all,
I have a game whose main scene is running and when the player clicks the in-game menu a choice is available for returning to the main menu.
When this choice is touched/clicked the scene is pushed to the stack via pushScene.
The new scene that runs is a confirmation screen with yes and no options.
If the player chooses no i simply pop the scene and everything is fine.
If he choses yes i want to return to the main menu, which is NOT on the scenes’ stack.
Therefore i use runScene(new menuScene()).
The question is: the scene that was pushed in the stack but NEVER popped is destroyed, or am i leaking memory ?