aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table')
-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;
}