diff options
| author | Juan Linietsky <reduzio@gmail.com> | 2015-11-18 19:43:45 -0300 |
|---|---|---|
| committer | Juan Linietsky <reduzio@gmail.com> | 2015-11-18 19:43:45 -0300 |
| commit | fe9f4eda9e668952749bcdcb740da39f92d8fa7d (patch) | |
| tree | e4544b7a6322688ce9774e29e61ba69e243aeab4 | |
| parent | 0c3386b2ed7c3791127e2b12a2227deddad96ae5 (diff) | |
| parent | 8c0c279280015391e5620bd59428ccab99683224 (diff) | |
Merge pull request #2706 from phobos-tro/main_memleaks
Fixing memleaks in main/main.cpp
| -rw-r--r-- | main/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/main.cpp b/main/main.cpp index 3ef357e253..b6bc10cee7 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -796,7 +796,6 @@ Error Main::setup(const char *execpath,int argc, char *argv[],bool p_second_phas main_args.clear(); print_help(execpath); - if (performance) memdelete(performance); @@ -812,6 +811,8 @@ Error Main::setup(const char *execpath,int argc, char *argv[],bool p_second_phas memdelete(packed_data); if (file_access_network_client) memdelete(file_access_network_client); + if(path_remap) + memdelete(path_remap); // Note 1: *zip_packed_data live into *packed_data // Note 2: PackedData::~PackedData destroy this. @@ -820,7 +821,7 @@ Error Main::setup(const char *execpath,int argc, char *argv[],bool p_second_phas // memdelete( zip_packed_data ); //#endif - + unregister_core_driver_types(); unregister_core_types(); OS::get_singleton()->_cmdline.clear(); |