Merge pull request #37825 from qarmin/leak_with_drives
Fixes leak with drives [3.2]
This commit is contained in:
commit
36a30f681f
|
@ -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