Commit 13ad089b authored by Michael Natterer's avatar Michael Natterer 😴

gtk: ref the action around gtk_action_emit_activate()

for the same reason we already ref the action's group in the function.
(cherry picked from commit ebe50bbe)
parent 1c90f6b6
......@@ -791,18 +791,20 @@ _gtk_action_emit_activate (GtkAction *action)
{
GtkActionGroup *group = action->private_data->action_group;
if (group != NULL)
if (group != NULL)
{
g_object_ref (action);
g_object_ref (group);
_gtk_action_group_emit_pre_activate (group, action);
}
g_signal_emit (action, action_signals[ACTIVATE], 0);
g_signal_emit (action, action_signals[ACTIVATE], 0);
if (group != NULL)
if (group != NULL)
{
_gtk_action_group_emit_post_activate (group, action);
g_object_unref (group);
g_object_unref (action);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment