check for null ActionGroup in ActionManager::drop_action_group()

This commit is contained in:
Paul Davis
2025-08-20 14:54:07 -06:00
parent c0fa42a203
commit 0dab69fe74

View File

@@ -564,6 +564,10 @@ ActionManager::get_all_actions (std::vector<std::string>& paths,
void
ActionManager::drop_action_group (Glib::RefPtr<ActionGroup> group)
{
if (!group) {
return;
}
/* Although ActionGroups are refcnt'ed we hold a reference on the
actions they contain in our global actions map. So an action group, if
to be deleted fully, needs to be passed in here first so that we can