Fix a bunch of memory leaks, after enabling file+line-number memory leak tracking for the MS Debug CRT.

Few of these were serious, most were on-exit, but good to have a cleaner memory report after running.
This commit is contained in:
Henrik Rydgard committed 2016-02-10 15:36:10 +01:00
1 parent 33b85934cc
commit 35b6c7341b
27 files changed
+118 -37

No files matched your search

+6 -1
View File
@@ -606,7 +606,11 @@ void GameInfoCache::Init() {
}
void GameInfoCache::Shutdown() {
StopProcessingWorkQueue(gameInfoWQ_);
if (gameInfoWQ_) {
StopProcessingWorkQueue(gameInfoWQ_);
delete gameInfoWQ_;
gameInfoWQ_ = nullptr;
}
}
void GameInfoCache::Clear() {
@@ -643,6 +647,7 @@ void GameInfoCache::Clear() {
iter->second->sndFileData.clear();
iter->second->sndDataLoaded = false;
}
delete iter->second;
}
info_.clear();
}