diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2007-06-15 20:56:03 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2007-06-15 20:56:03 +0800 |
commit | d4f3dec93309290ac22ac797eaf04148894e7271 (patch) | |
tree | e0a895b7c6a4cf54a365f8b8e860f35eb8e2c336 /widgets/table | |
parent | 737bb0b0b71a8e2605aca172b1ca20be0e941b94 (diff) | |
download | gsoc2013-evolution-d4f3dec93309290ac22ac797eaf04148894e7271.tar gsoc2013-evolution-d4f3dec93309290ac22ac797eaf04148894e7271.tar.gz gsoc2013-evolution-d4f3dec93309290ac22ac797eaf04148894e7271.tar.bz2 gsoc2013-evolution-d4f3dec93309290ac22ac797eaf04148894e7271.tar.lz gsoc2013-evolution-d4f3dec93309290ac22ac797eaf04148894e7271.tar.xz 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
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/ChangeLog | 5 | ||||
-rw-r--r-- | widgets/table/e-cell-vbox.c | 11 |
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; |