Commit 59a16f36 authored by Christian Hergert's avatar Christian Hergert

tab: sink floating reference on target value

parent 04ee63ca
......@@ -1073,8 +1073,8 @@ dzl_tab_set_action_target_value (GtkActionable *actionable,
if (priv->action_target_value != variant)
{
g_clear_pointer (&priv->action_target_value, g_variant_unref);
if (variant)
priv->action_target_value = g_variant_ref (variant);
if (variant != NULL)
priv->action_target_value = g_variant_ref_sink (variant);
g_object_notify (G_OBJECT (self), "action-target");
}
}
......
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