From 69ed4a9c725c438079ceeed89d49656d808308ce Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sun, 19 Aug 2012 22:24:18 +0200 Subject: [PATCH] fixed popping all states on application exit --- src/app/Application.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/Application.cpp b/src/app/Application.cpp index ac95ed0..4c8c574 100644 --- a/src/app/Application.cpp +++ b/src/app/Application.cpp @@ -106,7 +106,10 @@ void Application::Quit() { void Application::PopAllStates() { while (!states.empty()) { - RealPopState(); + states.top()->PauseState(*this, screen->Screen()); + states.top()->ExitState(*this, screen->Screen()); + delete states.top(); + states.pop(); } } -- 2.39.2