Selaa lähdekoodia

Fix crash when creating new text file with no name

Phischermen 5 vuotta sitten
vanhempi
commit
cdb29447b4
1 muutettua tiedostoa jossa 0 lisäystä ja 1 poistoa
  1. 0 1
      editor/plugins/script_editor_plugin.cpp

+ 0 - 1
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;
 			}