Fixes leak with drives [3.2]

This commit is contained in:
qarmin 2020-04-12 14:05:47 +02:00
parent 4dadec331e
commit 57952d562c
2 changed files with 2 additions and 0 deletions

View file

@ -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);

View file

@ -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);