aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-header-item.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-12-08 00:24:42 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-12-08 00:24:42 +0800
commita22a4c17a5796ed4aa4249f6154b7d3321bd6709 (patch)
tree0ff4b2d36582a13a251907672720728c4f30702e /widgets/table/e-table-header-item.c
parentdbd0b894c29ae2903b97dab4ee920badea62f074 (diff)
downloadgsoc2013-evolution-a22a4c17a5796ed4aa4249f6154b7d3321bd6709.tar.gz
gsoc2013-evolution-a22a4c17a5796ed4aa4249f6154b7d3321bd6709.tar.zst
gsoc2013-evolution-a22a4c17a5796ed4aa4249f6154b7d3321bd6709.zip
Free the xmlDoc when we are done with it. (e_table_state_save_to_file):
2000-12-07 Federico Mena Quintero <federico@helixcode.com> * e-table-state.c (e_table_state_save_to_string): Free the xmlDoc when we are done with it. (e_table_state_save_to_file): Ditto. * e-table.c (e_table_get_state): Unref the state object; why was it being sunk instead? (e_table_save_state): Ditto. (e_table_load_state): Ditto. (e_table_set_state): Ditto. * e-table-header-item.c (ethi_destroy): Free the ethi->dnd_code. svn path=/trunk/; revision=6837
Diffstat (limited to 'widgets/table/e-table-header-item.c')
-rw-r--r--widgets/table/e-table-header-item.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c
index 932846b6a0..2c13ef3dcc 100644
--- a/widgets/table/e-table-header-item.c
+++ b/widgets/table/e-table-header-item.c
@@ -85,12 +85,18 @@ ethi_destroy (GtkObject *object){
ethi_drop_table_header (ethi);
- if (ethi->sort_info){
+ if (ethi->dnd_code) {
+ g_free (ethi->dnd_code);
+ ethi->dnd_code = NULL;
+ }
+
+ if (ethi->sort_info) {
if (ethi->sort_info_changed_id)
gtk_signal_disconnect (GTK_OBJECT(ethi->sort_info), ethi->sort_info_changed_id);
if (ethi->group_info_changed_id)
gtk_signal_disconnect (GTK_OBJECT(ethi->sort_info), ethi->group_info_changed_id);
gtk_object_unref (GTK_OBJECT(ethi->sort_info));
+ ethi->sort_info = NULL;
}
if (GTK_OBJECT_CLASS (ethi_parent_class)->destroy)