aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-09-13 20:26:49 +0800
committerMilan Crha <mcrha@redhat.com>2012-09-13 20:27:58 +0800
commit60c4664090448adf258843915d5e55fe9e3343f1 (patch)
tree1d69f62fff184d86f62db67a84c542f9903188b2 /widgets
parente4a033596697c5730bcf5e33db0eb53d10a75550 (diff)
downloadgsoc2013-evolution-60c4664090448adf258843915d5e55fe9e3343f1.tar.gz
gsoc2013-evolution-60c4664090448adf258843915d5e55fe9e3343f1.tar.zst
gsoc2013-evolution-60c4664090448adf258843915d5e55fe9e3343f1.zip
Critical warning on ETree dispose, g_object_unref() called on freed object
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-tree.c6
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);