Fixes leak with drives [3.2]
This commit is contained in:
parent
4dadec331e
commit
57952d562c
|
@ -1557,6 +1557,7 @@ EditorFileDialog::EditorFileDialog() {
|
|||
|
||||
drives = memnew(OptionButton);
|
||||
drives->connect("item_selected", this, "_select_drive");
|
||||
pathhb->add_child(drives);
|
||||
|
||||
dir = memnew(LineEdit);
|
||||
pathhb->add_child(dir);
|
||||
|
|
|
@ -916,6 +916,7 @@ FileDialog::FileDialog() {
|
|||
|
||||
drives = memnew(OptionButton);
|
||||
drives->connect("item_selected", this, "_select_drive");
|
||||
hbc->add_child(drives);
|
||||
|
||||
dir = memnew(LineEdit);
|
||||
hbc->add_child(dir);
|
||||
|
|
Loading…
Reference in New Issue