mirror of
https://github.com/godotengine/godot.git
synced 2025-10-28 20:24:41 +00:00
Merge pull request #41022 from qarmin/fixes_leak_with_creating_settings
Fixes leak with creating editor settings
This commit is contained in:
commit
be7601c94e
1 changed files with 1 additions and 0 deletions
|
|
@ -936,6 +936,7 @@ void EditorSettings::create() {
|
||||||
String config_file_name = "editor_settings-" + itos(VERSION_MAJOR) + ".tres";
|
String config_file_name = "editor_settings-" + itos(VERSION_MAJOR) + ".tres";
|
||||||
config_file_path = config_dir.plus_file(config_file_name);
|
config_file_path = config_dir.plus_file(config_file_name);
|
||||||
if (!dir->file_exists(config_file_name)) {
|
if (!dir->file_exists(config_file_name)) {
|
||||||
|
memdelete(dir);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue