aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-01-18 01:14:31 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:44 +0100
commitd317c56065bf6c386ccf66555594ecea10721597 (patch)
tree0aedbfd12346fae2fac3d2e1100ea34202f3312e /src
parent5009375468b780cfeb0aac7e28425699991c621b (diff)
downloadusdx-d317c56065bf6c386ccf66555594ecea10721597.tar.gz
usdx-d317c56065bf6c386ccf66555594ecea10721597.tar.xz
usdx-d317c56065bf6c386ccf66555594ecea10721597.zip
fix memory leak
Diffstat (limited to 'src')
-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();
}