From d58d259aa0cfb513ea165cedd558561890656d65 Mon Sep 17 00:00:00 2001 From: Dan Vrátil Date: Sat, 1 Oct 2011 01:02:13 +0200 Subject: Fix two little memory leaks --- widgets/table/e-tree.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'widgets') diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index 41818652bd..effd1e9aa6 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -472,6 +472,11 @@ et_dispose (GObject *object) priv->table_canvas = NULL; } + if (priv->item != NULL) { + g_object_unref (G_OBJECT (priv->item)); + priv->item = NULL; + } + /* Chain up to parent's dispose() method. */ G_OBJECT_CLASS (e_tree_parent_class)->dispose (object); } -- cgit