diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-06-10 10:43:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-10 10:43:23 +0200 |
commit | 7c48155bbbed0deeb5256c82f6e84cb9a9fb3662 (patch) | |
tree | 2e24d65b405053fe777d77c7f98b546cb3fef787 | |
parent | abae0757ac41a2da838adcab26c4c980f31c9461 (diff) | |
parent | cdb29447b4da77bebc7adc944fe10ef7ea580ebf (diff) |
Merge pull request #39423 from Phischermen/fix-new-text-file-crash
Fix crash when creating new text file with no name
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 8d6dac3907..48a9febcf9 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -837,7 +837,6 @@ void ScriptEditor::_file_dialog_action(String p_file) { Error err; FileAccess *file = FileAccess::open(p_file, FileAccess::WRITE, &err); if (err) { - memdelete(file); editor->show_warning(TTR("Error writing TextFile:") + "\n" + p_file, TTR("Error!")); break; } |