Merge pull request #68505 from Rindbee/delete-unused-TreeItems
Fix memory leak in `EditorSettingsDialog`
This commit is contained in:
commit
8621d3c147
@ -487,6 +487,7 @@ void EditorSettingsDialog::_update_shortcuts() {
|
|||||||
TreeItem *section = E.value;
|
TreeItem *section = E.value;
|
||||||
if (section->get_first_child() == nullptr) {
|
if (section->get_first_child() == nullptr) {
|
||||||
root->remove_child(section);
|
root->remove_child(section);
|
||||||
|
memdelete(section);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user