aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2011-10-01 07:02:13 +0800
committerDan Vrátil <dvratil@redhat.com>2011-10-01 07:02:13 +0800
commitd58d259aa0cfb513ea165cedd558561890656d65 (patch)
treea0a93116c93ada8dae90cd573b451d6ee0e311a4 /widgets/table
parentd8487201c11c7dc9db84dab2100a4c8bfcc13272 (diff)
downloadgsoc2013-evolution-d58d259aa0cfb513ea165cedd558561890656d65.tar
gsoc2013-evolution-d58d259aa0cfb513ea165cedd558561890656d65.tar.gz
gsoc2013-evolution-d58d259aa0cfb513ea165cedd558561890656d65.tar.bz2
gsoc2013-evolution-d58d259aa0cfb513ea165cedd558561890656d65.tar.lz
gsoc2013-evolution-d58d259aa0cfb513ea165cedd558561890656d65.tar.xz
gsoc2013-evolution-d58d259aa0cfb513ea165cedd558561890656d65.tar.zst
gsoc2013-evolution-d58d259aa0cfb513ea165cedd558561890656d65.zip
Fix two little memory leaks
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-tree.c5
1 files changed, 5 insertions, 0 deletions
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);
}