From eded9459dfef134182d0b80d9c1f8c8d8f8abfde Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 8 Nov 2020 15:42:11 +0100 Subject: [PATCH] tests: Fix for new tranfer behavior of constructors We were still unreffing a listmodel where the reference wasn't ours anymore. --- tests/testcolumnview.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/testcolumnview.c b/tests/testcolumnview.c index 04f09f1ee5..79b1740cb8 100644 --- a/tests/testcolumnview.c +++ b/tests/testcolumnview.c @@ -771,8 +771,6 @@ main (int argc, char *argv[]) update_statusbar (GTK_STATUSBAR (statusbar)); gtk_box_append (GTK_BOX (vbox), statusbar); - g_object_unref (filter); - list = gtk_list_view_new ( GTK_SELECTION_MODEL (gtk_single_selection_new (g_object_ref (gtk_column_view_get_columns (GTK_COLUMN_VIEW (view))))), gtk_builder_list_item_factory_new_from_bytes (scope, g_bytes_new_static (factory_ui, strlen (factory_ui))));