From 0dab69fe74bbc2b268c7039d5017c177ea8aba78 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 20 Aug 2025 14:54:07 -0600 Subject: [PATCH] check for null ActionGroup in ActionManager::drop_action_group() --- libs/gtkmm2ext/actions.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/gtkmm2ext/actions.cc b/libs/gtkmm2ext/actions.cc index 087a0b839f..bef6f78aa6 100644 --- a/libs/gtkmm2ext/actions.cc +++ b/libs/gtkmm2ext/actions.cc @@ -564,6 +564,10 @@ ActionManager::get_all_actions (std::vector& paths, void ActionManager::drop_action_group (Glib::RefPtr 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