aboutsummaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/base/songloading/songloader.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/base/songloading/songloader.cpp b/src/base/songloading/songloader.cpp
index 1b900bd4..0b1e34ad 100644
--- a/src/base/songloading/songloader.cpp
+++ b/src/base/songloading/songloader.cpp
@@ -44,6 +44,12 @@ namespace usdx
Songloader::~Songloader(void)
{
+ std::map<std::string, SongloadingStrategy*>::iterator it;
+ for (it = strategies.begin(); it != strategies.end(); it++) {
+ delete it->second;
+ it->second = NULL;
+ }
+
strategies.clear();
}