aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-04-20 09:44:07 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-04-20 09:44:07 +0800
commit082a1d35db051530f5afb6d33c7fbaca1eff8fd1 (patch)
treec5cfd872c96ae4c6aaa6daf2efe19410d0fdf28b
parentfadb6a35b6bbca31ccd2a45e2cc1de4a3a146cf4 (diff)
downloadgsoc2013-evolution-082a1d35db051530f5afb6d33c7fbaca1eff8fd1.tar
gsoc2013-evolution-082a1d35db051530f5afb6d33c7fbaca1eff8fd1.tar.gz
gsoc2013-evolution-082a1d35db051530f5afb6d33c7fbaca1eff8fd1.tar.bz2
gsoc2013-evolution-082a1d35db051530f5afb6d33c7fbaca1eff8fd1.tar.lz
gsoc2013-evolution-082a1d35db051530f5afb6d33c7fbaca1eff8fd1.tar.xz
gsoc2013-evolution-082a1d35db051530f5afb6d33c7fbaca1eff8fd1.tar.zst
gsoc2013-evolution-082a1d35db051530f5afb6d33c7fbaca1eff8fd1.zip
Free the priv->search_string and priv itself. More memory leak fixage.
2002-04-19 Jeffrey Stedfast <fejj@ximian.com> * 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
-rw-r--r--widgets/table/e-table-search.c7
-rw-r--r--widgets/table/e-tree.c2
2 files changed, 9 insertions, 0 deletions
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;
}