Merge pull request #37639 from qarmin/no_more_leaks
Fixes leaks when running editor
This commit is contained in:
commit
0d4d96d4b0
3 changed files with 2 additions and 1 deletions
|
@ -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"));
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue