Merge pull request #37639 from qarmin/no_more_leaks

Fixes leaks when running editor
This commit is contained in:
Rémi Verschelde 2020-04-06 21:25:36 +02:00 committed by GitHub
commit 0d4d96d4b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 1 deletions

View file

@ -1579,6 +1579,7 @@ EditorFileDialog::EditorFileDialog() {
drives = memnew(OptionButton); drives = memnew(OptionButton);
drives->connect("item_selected", callable_mp(this, &EditorFileDialog::_select_drive)); drives->connect("item_selected", callable_mp(this, &EditorFileDialog::_select_drive));
pathhb->add_child(drives);
makedir = memnew(Button); makedir = memnew(Button);
makedir->set_text(TTR("Create Folder")); makedir->set_text(TTR("Create Folder"));

View file

@ -322,7 +322,6 @@ AcceptDialog::AcceptDialog() {
label->set_end(Point2(-margin, -button_margin - 10)); label->set_end(Point2(-margin, -button_margin - 10));
add_child(label); add_child(label);
hbc = memnew(HBoxContainer);
add_child(hbc); add_child(hbc);
hbc->add_spacer(); hbc->add_spacer();

View file

@ -909,6 +909,7 @@ FileDialog::FileDialog() {
drives = memnew(OptionButton); drives = memnew(OptionButton);
drives->connect("item_selected", callable_mp(this, &FileDialog::_select_drive)); drives->connect("item_selected", callable_mp(this, &FileDialog::_select_drive));
hbc->add_child(drives);
dir = memnew(LineEdit); dir = memnew(LineEdit);
hbc->add_child(dir); hbc->add_child(dir);