aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/base/language.cpp3
-rw-r--r--src/base/songloading/songloader.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/base/language.cpp b/src/base/language.cpp
index 121f17c2..340cdac4 100644
--- a/src/base/language.cpp
+++ b/src/base/language.cpp
@@ -52,6 +52,9 @@ namespace usdx
Language::~Language(void)
{
+
+ // remove reference from singleton to make regeneration possible
+ instance = NULL;
}
Language* Language::get_instance(void)
diff --git a/src/base/songloading/songloader.cpp b/src/base/songloading/songloader.cpp
index c5c595d4..b86f3100 100644
--- a/src/base/songloading/songloader.cpp
+++ b/src/base/songloading/songloader.cpp
@@ -51,6 +51,9 @@ namespace usdx
}
strategies.clear();
+
+ // remove reference from singleton to make regeneration possible
+ instance = NULL;
}
Songloader *Songloader::get_instance(void)