toolitemgroup: Fix the previous change

dispose can be called more than once.
This commit is contained in:
Matthias Clasen 2015-10-27 12:53:43 -04:00
parent 9753bea6a4
commit 0f4663728e

View File

@ -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);