mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +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:
+2
-1
@@ -72,7 +72,7 @@
|
||||
#undef new
|
||||
#define new new(_NORMAL_BLOCK, __FILE__, __LINE__)
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef _WINDOWS
|
||||
#include <conio.h>
|
||||
#include <process.h>
|
||||
@@ -475,6 +475,7 @@ int main(int argc, char** argv) {
|
||||
#endif
|
||||
safe_delete(ps);
|
||||
safe_delete(mmf);
|
||||
safe_delete(Config);
|
||||
|
||||
if (zone != 0)
|
||||
Zone::Shutdown(true);
|
||||
|
||||
Reference in New Issue
Block a user