Merge pull request #68505 from Rindbee/delete-unused-TreeItems

Fix memory leak in `EditorSettingsDialog`
This commit is contained in:
Rémi Verschelde 2022-11-11 16:49:40 +01:00
commit 8621d3c147
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -487,6 +487,7 @@ void EditorSettingsDialog::_update_shortcuts() {
TreeItem *section = E.value;
if (section->get_first_child() == nullptr) {
root->remove_child(section);
memdelete(section);
}
}
}