Fix a few memory leaks

- Rewrite zonename_array to use std::map rather than a pointer to an array
of character pointers

- Properly delete ZoneConfig on Zone shutdown

- Delete AdventureTemplates in AdventureManager destructor
This commit is contained in:
j883376
2013-06-21 17:09:46 -04:00
parent e811e3975b
commit 76e25f75fa
4 changed files with 20 additions and 63 deletions
+4
View File
@@ -27,6 +27,10 @@ AdventureManager::~AdventureManager()
safe_delete(process_timer);
safe_delete(save_timer);
safe_delete(leaderboard_info_timer);
for (auto iter = adventure_templates.begin(); iter != adventure_templates.end(); ++iter) {
delete iter->second;
}
}
void AdventureManager::Process()