aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-12-09 10:56:48 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-12-09 10:56:48 +0800
commit16b387c97c13d1e28437e70df8b90497747038ad (patch)
treeeb4e1ad4fd5eb266aa12751941dcfc44077a8898 /widgets/table
parente68b48fb6e2c34fc0097669ba3a85b04ceb1d618 (diff)
downloadgsoc2013-evolution-16b387c97c13d1e28437e70df8b90497747038ad.tar.gz
gsoc2013-evolution-16b387c97c13d1e28437e70df8b90497747038ad.tar.zst
gsoc2013-evolution-16b387c97c13d1e28437e70df8b90497747038ad.zip
If there are columns allocated, free them upon a destroy.
2000-12-08 JP Rosevear <jpr@helixcode.com> * e-table-state.c (etst_destroy): If there are columns allocated, free them upon a destroy. 2000-12-08 JP Rosevear <jpr@helixcode.com> * gal/widgets/e-canvas.c (e_canvas_destroy): Remove my lame "fix" svn path=/trunk/; revision=6884
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-table-state.c5
1 files changed, 3 insertions, 2 deletions
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);
}