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
+1 -2
View File
@@ -255,8 +255,7 @@ protected:
private:
void DBInitVars();
uint32 max_zonename;
char** zonename_array;
std::map<uint32,std::string> zonename_array;
Mutex Mvarcache;
uint32 varcache_max;