aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-04-26 16:20:23 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:48 +0100
commita17ab6c52cf7f8db93558d1d822aa59713b20210 (patch)
treed601ed25512edc4868dc17e7163c5c8de8beacea /src/menu
parentc6f0f0ebc12186dd81a244dae1eff784c0f0ca95 (diff)
downloadusdx-a17ab6c52cf7f8db93558d1d822aa59713b20210.tar.gz
usdx-a17ab6c52cf7f8db93558d1d822aa59713b20210.tar.xz
usdx-a17ab6c52cf7f8db93558d1d822aa59713b20210.zip
reset singleton instance on destruction
Diffstat (limited to 'src/menu')
-rw-r--r--src/menu/application.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/menu/application.cpp b/src/menu/application.cpp
index d36e10b3..01555afb 100644
--- a/src/menu/application.cpp
+++ b/src/menu/application.cpp
@@ -51,6 +51,9 @@ namespace usdx
}
SDL_Quit();
+
+ // reset instance to be able to recreate the singleton
+ instance = NULL;
}
Application* Application::get_instance(void)