mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
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:
1 parent
33b85934cc
commit
35b6c7341b
27 files changed
+118
-37
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user