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/menu/application.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/menu/application.hpp') diff --git a/src/menu/application.hpp b/src/menu/application.hpp index 78b4e01d..c6eea5c8 100644 --- a/src/menu/application.hpp +++ b/src/menu/application.hpp @@ -67,6 +67,8 @@ namespace usdx virtual ~Application(); static Application* get_instance(void); + static void free(void); + static Config* get_config(void); static bool is_gl_thread(void); -- cgit v1.2.3