From cac7734bd0439abb40cf5bdf903335e57a0f017c Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 21 Jan 2013 02:30:50 +0100 Subject: menu/application: add free to allow multiple runs free() is used to reset the instance of this singleton, so that it gets recreated on the next access. This allows multiple creation/deletion cycles (for example in the tests). --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index a7f7e2b6..9e1ba84b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -28,7 +28,7 @@ int main (int argc, char** argv) { usdx::Application::get_instance()->run(); - delete usdx::Application::get_instance(); + usdx::Application::free(); return EXIT_SUCCESS; } -- cgit v1.2.3