[gtk+] toolitemgroup: Fix the previous change
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] toolitemgroup: Fix the previous change
- Date: Tue, 27 Oct 2015 18:39:28 +0000 (UTC)
commit 0f4663728e1627c18ce554fb477f9a73f8093d5d
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Oct 27 12:53:43 2015 -0400
toolitemgroup: Fix the previous change
dispose can be called more than once.
gtk/gtktoolitemgroup.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index 6d78378..1b734b5 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]