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)
This commit is contained in:
Matthias Clasen 2006-07-02 14:48:00 +00:00 committed by Matthias Clasen
parent 26c3befdf0
commit 0072406481
3 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2006-06-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize):
Don't leak default_sort_data. (#346341, Christian Weiske)
* gtk/Makefile.am: Make sure all win32-specific printing
sources are distributed. (#346312, Erik van Pienbroek)

View File

@ -1,5 +1,8 @@
2006-06-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize):
Don't leak default_sort_data. (#346341, Christian Weiske)
* gtk/Makefile.am: Make sure all win32-specific printing
sources are distributed. (#346312, Erik van Pienbroek)

View File

@ -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);
}