aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/menu/application.cpp6
-rw-r--r--src/menu/application.hpp2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/menu/application.cpp b/src/menu/application.cpp
index f4802220..f9be797f 100644
--- a/src/menu/application.cpp
+++ b/src/menu/application.cpp
@@ -81,6 +81,12 @@ namespace usdx
return instance;
}
+ void Application::free(void)
+ {
+ delete instance;
+ instance = NULL;
+ }
+
Config* Application::get_config(void)
{
return get_instance()->config;
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);