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