diff options
Diffstat (limited to 'widgets/table/e-tree.c')
-rw-r--r-- | widgets/table/e-tree.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index d0922cf4d2..a25ef8cac4 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -484,10 +484,8 @@ et_dispose (GObject *object) priv->table_canvas = NULL; } - if (priv->item != NULL) { - g_object_unref (G_OBJECT (priv->item)); - priv->item = NULL; - } + /* do not unref it, it was owned by priv->table_canvas */ + priv->item = NULL; /* Chain up to parent's dispose() method. */ G_OBJECT_CLASS (e_tree_parent_class)->dispose (object); |