From d4f3dec93309290ac22ac797eaf04148894e7271 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 15 Jun 2007 12:56:03 +0000 Subject: Free the model_cols array when the instance is destroyed (#447742). 2007-06-15 Matthew Barnes * e-cell-vbox.c (ecv_finalize): Free the model_cols array when the instance is destroyed (#447742). svn path=/trunk/; revision=33676 --- widgets/table/e-cell-vbox.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'widgets/table/e-cell-vbox.c') 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 @@ -414,12 +414,23 @@ ecv_dispose (GObject *object) G_OBJECT_CLASS (parent_class)->dispose (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; -- cgit v1.2.3