From acabdafb3554287fca83cb0439b6d27a2f68fc1e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 4 Dec 2019 18:30:37 -0500 Subject: [PATCH] Fix treelistmodel tests They were failing to return a reference where they need to. This was uncovered by fixing an unrelated ref leak. --- testsuite/gtk/treelistmodel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/gtk/treelistmodel.c b/testsuite/gtk/treelistmodel.c index 3a0d6df674..75dbcd41fa 100644 --- a/testsuite/gtk/treelistmodel.c +++ b/testsuite/gtk/treelistmodel.c @@ -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; }