diff options
-rw-r--r-- | widgets/e-table/e-tree-model.c | 5 | ||||
-rw-r--r-- | widgets/table/e-tree-model.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/widgets/e-table/e-tree-model.c b/widgets/e-table/e-tree-model.c index dba9c27deb..fefe6c68da 100644 --- a/widgets/e-table/e-tree-model.c +++ b/widgets/e-table/e-tree-model.c @@ -43,7 +43,12 @@ static void add_visible_descendents_to_array (ETreeModel *etm, GNode *gnode, int static void etree_destroy (GtkObject *object) { + ETreeModel *etree = E_TREE_MODEL (object); + /* XXX lots of stuff to free here */ + g_array_free (etree->row_array, TRUE); + + GTK_OBJECT_CLASS (e_tree_model_parent_class)->destroy (object); } static ETreePath* diff --git a/widgets/table/e-tree-model.c b/widgets/table/e-tree-model.c index dba9c27deb..fefe6c68da 100644 --- a/widgets/table/e-tree-model.c +++ b/widgets/table/e-tree-model.c @@ -43,7 +43,12 @@ static void add_visible_descendents_to_array (ETreeModel *etm, GNode *gnode, int static void etree_destroy (GtkObject *object) { + ETreeModel *etree = E_TREE_MODEL (object); + /* XXX lots of stuff to free here */ + g_array_free (etree->row_array, TRUE); + + GTK_OBJECT_CLASS (e_tree_model_parent_class)->destroy (object); } static ETreePath* |