Fix treelistmodel tests

They were failing to return a reference where they
need to. This was uncovered by fixing an unrelated
ref leak.
This commit is contained in:
Matthias Clasen
2019-12-04 18:30:37 -05:00
parent 168c1f440d
commit acabdafb35

View File

@@ -158,7 +158,7 @@ create_sub_model_cb (gpointer item,
gpointer unused)
{
if (G_IS_LIST_MODEL (item))
return item;
return g_object_ref (item);
return NULL;
}