From 082a1d35db051530f5afb6d33c7fbaca1eff8fd1 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sat, 20 Apr 2002 01:44:07 +0000 Subject: Free the priv->search_string and priv itself. More memory leak fixage. 2002-04-19 Jeffrey Stedfast * e-table-search.c (e_table_search_destroy): Free the priv->search_string and priv itself. More memory leak fixage. * e-tree.c (e_tree_drag_source_unset): Unref site->taget_list so we don't leak memory. svn path=/trunk/; revision=16547 --- widgets/table/e-table-search.c | 7 +++++++ widgets/table/e-tree.c | 2 ++ 2 files changed, 9 insertions(+) (limited to 'widgets') diff --git a/widgets/table/e-table-search.c b/widgets/table/e-table-search.c index ec27d9769e..b1fd6b3cba 100644 --- a/widgets/table/e-table-search.c +++ b/widgets/table/e-table-search.c @@ -107,6 +107,13 @@ add_timeout (ETableSearch *ets) static void e_table_search_destroy (GtkObject *object) { + ETableSearch *ets = (ETableSearch *) object; + + /* FIXME: do we need to unregister the timeout? bad things + might happen if a timeout is still active. */ + g_free (ets->priv->search_string); + g_free (ets->priv); + if (e_table_search_parent_class->destroy) (*e_table_search_parent_class->destroy)(object); } diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index f4000091e1..b3bc4da094 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -2347,6 +2347,8 @@ e_tree_drag_source_unset (ETree *tree) site = tree->priv->site; if (site) { + if (site->target_list) + gtk_target_list_unref (site->target_list); g_free (site); tree->priv->site = NULL; } -- cgit v1.2.3