From 599ccbb7d47407bbe32df12fbb3c51f4b19ae602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Tue, 4 Aug 2020 16:08:06 +0200 Subject: [PATCH] Fixes leak with creating editor settings --- editor/editor_settings.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index a3438b36015..b55fd408502 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -935,6 +935,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; }