mirror of
https://github.com/godotengine/godot.git
synced 2025-01-18 20:40:57 +08:00
Fix memory leak in EditorSettingsDialog
Delete `TreeItem`s that are not in `Tree`, `TreeItem` needs to be deleted manually.
This commit is contained in:
parent
d2bd8e5289
commit
12787ad57d
@ -487,6 +487,7 @@ void EditorSettingsDialog::_update_shortcuts() {
|
||||
TreeItem *section = E.value;
|
||||
if (section->get_first_child() == nullptr) {
|
||||
root->remove_child(section);
|
||||
memdelete(section);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user