Fixed several memory leaks

This commit is contained in:
Wilson E. Alvarez
2017-08-24 12:51:28 -04:00
parent 3ea0943f64
commit 1577f41653
7 changed files with 13 additions and 15 deletions

View File

@ -253,6 +253,7 @@ static void _create_script_templates(const String &p_path) {
}
}
memdelete(dir);
memdelete(file);
}
@ -280,6 +281,7 @@ void EditorSettings::create() {
self_contained = true;
extra_config->load(exe_path + "/_sc_");
}
memdelete(d);
if (self_contained) {
// editor is self contained