diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-01-29 23:48:46 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:46 +0100 |
commit | 2f2d371dbda69a3a364cd875c8181b072bcd7aeb (patch) | |
tree | 8fb1b9aa64d64c726c38f8173d302ed35df60c63 /src/base/songloading | |
parent | 0a40534c340170a9ddfc18bd82c932e054d06321 (diff) | |
download | usdx-2f2d371dbda69a3a364cd875c8181b072bcd7aeb.tar.gz usdx-2f2d371dbda69a3a364cd875c8181b072bcd7aeb.tar.xz usdx-2f2d371dbda69a3a364cd875c8181b072bcd7aeb.zip |
made singletons reusable
set instance variable to NULL on deletion of singleton, so that it is
reconstructed before next usage
Diffstat (limited to '')
-rw-r--r-- | src/base/songloading/songloader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) |