diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-09-03 14:51:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-03 14:51:45 +0200 |
commit | be7601c94e8888a28c729f36cd4a8b6598a054e7 (patch) | |
tree | 56cd20350d9eb0f55ed60cd87c1e4466ff527ca4 | |
parent | 2da7d2c172a18a7e623cd7c137e15e35a133c0b6 (diff) | |
parent | 599ccbb7d47407bbe32df12fbb3c51f4b19ae602 (diff) |
Merge pull request #41022 from qarmin/fixes_leak_with_creating_settings
Fixes leak with creating editor settings
-rw-r--r-- | editor/editor_settings.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index 561ef51f0a..0aefef7018 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -936,6 +936,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; } |