mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-29 21:08:03 +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
-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