summaryrefslogtreecommitdiff
path: root/gtk/gtktoolitemgroup.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-10-27 11:07:53 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-10-27 11:09:00 -0400
commit9753bea6a4f4150ea8b74484290021b4499c6e36 (patch)
treea28319de4945b2e6c81b18550826d933b99658f9 /gtk/gtktoolitemgroup.c
parent270e900f55f230c493956c5d10ab0b98cd42061b (diff)
downloadgtk+-9753bea6a4f4150ea8b74484290021b4499c6e36.tar.gz
tool item group: Don't leak a button
This causes a hickup in the new css node machinery, causing the default-value test to fail.
Diffstat (limited to 'gtk/gtktoolitemgroup.c')
-rw-r--r--gtk/gtktoolitemgroup.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index 719ccff23d..6d783788dc 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -495,11 +495,7 @@ gtk_tool_item_group_finalize (GObject *object)
{
GtkToolItemGroup *group = GTK_TOOL_ITEM_GROUP (object);
- if (group->priv->children)
- {
- g_list_free (group->priv->children);
- group->priv->children = NULL;
- }
+ g_list_free (group->priv->children);
G_OBJECT_CLASS (gtk_tool_item_group_parent_class)->finalize (object);
}
@@ -527,6 +523,8 @@ gtk_tool_item_group_dispose (GObject *object)
}
g_clear_object (&priv->settings);
+ gtk_widget_destroy (priv->header);
+ g_clear_object (&priv->header);
G_OBJECT_CLASS (gtk_tool_item_group_parent_class)->dispose (object);
}