1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Fixes leak with creating editor settings

(cherry picked from commit 599ccbb7d4)
This commit is contained in:
Rafał Mikrut
2020-08-04 16:08:06 +02:00
committed by Rémi Verschelde
parent c6cccdf0c6
commit 9caa35532a

View File

@@ -926,6 +926,7 @@ void EditorSettings::create() {
String config_file_name = "editor_settings-" + itos(VERSION_MAJOR) + ".tres";
config_file_path = config_dir.plus_file(config_file_name);
if (!dir->file_exists(config_file_name)) {
memdelete(dir);
goto fail;
}