From a17ab6c52cf7f8db93558d1d822aa59713b20210 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 26 Apr 2010 16:20:23 +0200 Subject: reset singleton instance on destruction --- src/menu/application.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/menu') 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) -- cgit v1.2.3