GNOME Bugzilla – Bug 96851
[PATCH] sortmodel leaking references on child model
Last modified: 2004-12-22 21:47:04 UTC
When setting the child model, GtkTreeModelSort refs the child model twice, and only unrefs it once when unsetting. Attached patch fixes the problem.
Created attachment 11840 [details] [review] patch
Attached patch is wrong, because things will segfault in the following situation: m = gtk_list_store_new (); n = gtk_tree_model_sort_new_with_model (m); g_object_unref (m); gtk_tree_model_sort_set_model (n, m); If you remove the second ref call, then things will be fine, so that fix got in.