summaryrefslogtreecommitdiff
path: root/gtk/gtktreemodelsort.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-07-02 14:48:00 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-07-02 14:48:00 +0000
commit007240648181866c360986e4862838aed1f16f7d (patch)
tree5da341a428baab86694b7e5254d0c63e3b01baae /gtk/gtktreemodelsort.c
parent26c3befdf0bcfd7aa3db7cfeb8e4a77df9c64e77 (diff)
downloadgtk+-007240648181866c360986e4862838aed1f16f7d.tar.gz
Don't leak default_sort_data. (#346341, Christian Weiske)
2006-07-02 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): Don't leak default_sort_data. (#346341, Christian Weiske)
Diffstat (limited to 'gtk/gtktreemodelsort.c')
-rw-r--r--gtk/gtktreemodelsort.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtktreemodelsort.c b/gtk/gtktreemodelsort.c
index 0a744aca7e..b557fe3f16 100644
--- a/gtk/gtktreemodelsort.c
+++ b/gtk/gtktreemodelsort.c
@@ -353,6 +353,14 @@ gtk_tree_model_sort_finalize (GObject *object)
tree_model_sort->sort_list = NULL;
}
+ if (tree_model_sort->default_sort_destroy)
+ {
+ tree_model_sort->default_sort_destroy (tree_model_sort->default_sort_data);
+ tree_model_sort->default_sort_destroy = NULL;
+ tree_model_sort->default_sort_data = NULL;
+ }
+
+
/* must chain up */
G_OBJECT_CLASS (gtk_tree_model_sort_parent_class)->finalize (object);
}