From f523f2d1539e6a3f54cc9f486f3f9201376d6006 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 19 Dec 2002 03:22:02 +0000 Subject: free the children before we free and dispose of our ecol, since 2002-12-18 Chris Toshok * e-table-group-container.c (etgc_dispose): free the children before we free and dispose of our ecol, since e_table_group_container_child_node_free depends on it. Fixes a crash. svn path=/trunk/; revision=19166 --- widgets/table/e-table-group-container.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/widgets/table/e-table-group-container.c b/widgets/table/e-table-group-container.c index 7b8df0db5b..dedc291a46 100644 --- a/widgets/table/e-table-group-container.c +++ b/widgets/table/e-table-group-container.c @@ -107,6 +107,9 @@ etgc_dispose (GObject *object) { ETableGroupContainer *etgc = E_TABLE_GROUP_CONTAINER (object); + if (etgc->children) + e_table_group_container_list_free (etgc); + if (etgc->font) gdk_font_unref (etgc->font); etgc->font = NULL; @@ -127,8 +130,6 @@ etgc_dispose (GObject *object) gtk_object_destroy (GTK_OBJECT(etgc->rect)); etgc->rect = NULL; - e_table_group_container_list_free (etgc); - G_OBJECT_CLASS (etgc_parent_class)->dispose (object); } @@ -432,7 +433,6 @@ create_child_node (ETableGroupContainer *etgc, void *val) NULL); child_node->text = gnome_canvas_item_new (GNOME_CANVAS_GROUP (etgc), e_text_get_type (), - "font_gdk", etgc->font, "anchor", GTK_ANCHOR_SW, "fill_color", "black", "draw_background", FALSE, -- cgit v1.2.3