aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-table-item.c3
-rw-r--r--widgets/table/e-table.c1
2 files changed, 1 insertions, 3 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index 35c0de5a6d..1cd37d1961 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -857,9 +857,6 @@ eti_destroy (GtkObject *object)
eti_remove_table_model (eti);
eti_remove_table_selection_model (eti);
- if (eti->selection)
- gtk_object_unref(GTK_OBJECT(eti->selection));
-
if (eti->height_cache_idle_id)
g_source_remove(eti->height_cache_idle_id);
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index 89f032b401..1a2a3cd8d6 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -146,6 +146,7 @@ et_destroy (GtkObject *object)
gtk_object_unref (GTK_OBJECT (et->header));
gtk_object_unref (GTK_OBJECT (et->sort_info));
gtk_object_unref (GTK_OBJECT (et->sorter));
+ gtk_object_unref (GTK_OBJECT (et->selection));
if (et->header_canvas != NULL)
gtk_widget_destroy (GTK_WIDGET (et->header_canvas));