mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-29 14:32:17 +00:00
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:
1 parent
e811e3975b
commit
76e25f75fa
4 files changed
+20
-63
No files matched your search
+1
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user