From 16b387c97c13d1e28437e70df8b90497747038ad Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Sat, 9 Dec 2000 02:56:48 +0000 Subject: If there are columns allocated, free them upon a destroy. 2000-12-08 JP Rosevear * e-table-state.c (etst_destroy): If there are columns allocated, free them upon a destroy. 2000-12-08 JP Rosevear * gal/widgets/e-canvas.c (e_canvas_destroy): Remove my lame "fix" svn path=/trunk/; revision=6884 --- widgets/table/e-table-state.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'widgets/table') diff --git a/widgets/table/e-table-state.c b/widgets/table/e-table-state.c index 36c7293267..b36bbf41c7 100644 --- a/widgets/table/e-table-state.c +++ b/widgets/table/e-table-state.c @@ -23,9 +23,10 @@ static GtkObjectClass *etst_parent_class; static void etst_destroy (GtkObject *object) { -#if 0 ETableState *etst = E_TABLE_STATE (object); -#endif + + if (etst->columns) + g_free (etst->columns); GTK_OBJECT_CLASS (etst_parent_class)->destroy (object); } -- cgit v1.2.3