Merge pull request #35165 from groud/fix_memleak_filesystemdock
Fixes a memory leak in FileSystemDock
This commit is contained in:
commit
f2d45676c9
@ -140,6 +140,7 @@ bool FileSystemDock::_create_tree(TreeItem *p_parent, EditorFileSystemDirectory
|
||||
subdirectory_item->set_collapsed(false);
|
||||
} else if (dname != "res://") {
|
||||
subdirectory_item->get_parent()->remove_child(subdirectory_item);
|
||||
memdelete(subdirectory_item);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user