diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-04-26 16:20:23 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:48 +0100 |
commit | a17ab6c52cf7f8db93558d1d822aa59713b20210 (patch) | |
tree | d601ed25512edc4868dc17e7163c5c8de8beacea /src | |
parent | c6f0f0ebc12186dd81a244dae1eff784c0f0ca95 (diff) | |
download | usdx-a17ab6c52cf7f8db93558d1d822aa59713b20210.tar.gz usdx-a17ab6c52cf7f8db93558d1d822aa59713b20210.tar.xz usdx-a17ab6c52cf7f8db93558d1d822aa59713b20210.zip |
reset singleton instance on destruction
Diffstat (limited to 'src')
-rw-r--r-- | src/menu/application.cpp | 3 |
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) |