diff options
-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; |