aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2007-06-15 20:56:03 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2007-06-15 20:56:03 +0800
commitd4f3dec93309290ac22ac797eaf04148894e7271 (patch)
treee0a895b7c6a4cf54a365f8b8e860f35eb8e2c336
parent737bb0b0b71a8e2605aca172b1ca20be0e941b94 (diff)
downloadgsoc2013-evolution-d4f3dec93309290ac22ac797eaf04148894e7271.tar.gz
gsoc2013-evolution-d4f3dec93309290ac22ac797eaf04148894e7271.tar.zst
gsoc2013-evolution-d4f3dec93309290ac22ac797eaf04148894e7271.zip
Free the model_cols array when the instance is destroyed (#447742).
2007-06-15 Matthew Barnes <mbarnes@redhat.com> * e-cell-vbox.c (ecv_finalize): Free the model_cols array when the instance is destroyed (#447742). svn path=/trunk/; revision=33676
-rw-r--r--widgets/table/ChangeLog5
-rw-r--r--widgets/table/e-cell-vbox.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog
index b997aa9d3e..650b16cb51 100644
--- a/widgets/table/ChangeLog
+++ b/widgets/table/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-15 Matthew Barnes <mbarnes@redhat.com>
+
+ * e-cell-vbox.c (ecv_finalize):
+ Free the model_cols array when the instance is destroyed (#447742).
+
2007-06-02 Gilles Dartiguelongue <dartigug@esiee.fr>
** Fixes part of bug #441014
diff --git a/widgets/table/e-cell-vbox.c b/widgets/table/e-cell-vbox.c
index ab64ac4416..4327722b64 100644
--- a/widgets/table/e-cell-vbox.c
+++ b/widgets/table/e-cell-vbox.c
@@ -415,11 +415,22 @@ ecv_dispose (GObject *object)
}
static void
+ecv_finalize (GObject *object)
+{
+ ECellVbox *ecv = E_CELL_VBOX (object);
+
+ g_free (ecv->model_cols);
+
+ G_OBJECT_CLASS (parent_class)->finalize (object);
+}
+
+static void
e_cell_vbox_class_init (GObjectClass *object_class)
{
ECellClass *ecc = (ECellClass *) object_class;
object_class->dispose = ecv_dispose;
+ object_class->finalize = ecv_finalize;
ecc->new_view = ecv_new_view;
ecc->kill_view = ecv_kill_view;