diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-10-27 12:53:43 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-10-27 12:54:19 -0400 |
commit | 0f4663728e1627c18ce554fb477f9a73f8093d5d (patch) | |
tree | 9a5d96ce2f9db444426e482ed93582bfb24678d8 /gtk/gtktoolitemgroup.c | |
parent | 9753bea6a4f4150ea8b74484290021b4499c6e36 (diff) | |
download | gtk+-0f4663728e1627c18ce554fb477f9a73f8093d5d.tar.gz |
toolitemgroup: Fix the previous change
dispose can be called more than once.
Diffstat (limited to 'gtk/gtktoolitemgroup.c')
-rw-r--r-- | gtk/gtktoolitemgroup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c index 6d783788dc..1b734b55b7 100644 --- a/gtk/gtktoolitemgroup.c +++ b/gtk/gtktoolitemgroup.c @@ -523,7 +523,8 @@ gtk_tool_item_group_dispose (GObject *object) } g_clear_object (&priv->settings); - gtk_widget_destroy (priv->header); + if (priv->header) + gtk_widget_destroy (priv->header); g_clear_object (&priv->header); G_OBJECT_CLASS (gtk_tool_item_group_parent_class)->dispose (object); |