[gtk/matthiasc/for-master: 3/3] Fix treelistmodel tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 3/3] Fix treelistmodel tests
- Date: Wed, 4 Dec 2019 23:32:08 +0000 (UTC)
commit acabdafb3554287fca83cb0439b6d27a2f68fc1e
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Dec 4 18:30:37 2019 -0500
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]