Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtk+/ChangeLog,v
retrieving revision 1.3801
diff -u -r1.3801 ChangeLog
--- ChangeLog	25 Oct 2002 22:33:29 -0000	1.3801
+++ ChangeLog	26 Oct 2002 01:02:31 -0000
@@ -1,3 +1,11 @@
+2002-10-26  Jorn Baayen  <jorn@nl.linux.org>
+
+	* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_set_model):
+
+	Fix child_model reference leak:
+	child_model would be reffed twice, but on removal only
+	unreffed once.
+
 Fri Oct 25 23:36:30 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
 
 	* gtk/gtkmenu.c: Change NAVIGATION_REGION_OVERSHOOT from 50 to 5.
Index: gtk/gtktreemodelsort.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtktreemodelsort.c,v
retrieving revision 1.76
diff -u -r1.76 gtktreemodelsort.c
--- gtk/gtktreemodelsort.c	14 Oct 2002 22:50:18 -0000	1.76
+++ gtk/gtktreemodelsort.c	26 Oct 2002 01:02:33 -0000
@@ -1798,9 +1798,6 @@
 {
   g_return_if_fail (GTK_IS_TREE_MODEL_SORT (tree_model_sort));
 
-  if (child_model)
-    g_object_ref (child_model);
-
   if (tree_model_sort->child_model)
     {
       g_signal_handler_disconnect (tree_model_sort->child_model,
