[gtk/inspector-trees: 1/2] inspector: Fixup




commit 57749bb3eabe21a487253fad00b4029f0e26999c
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Oct 7 00:04:28 2022 -0400

    inspector: Fixup
    
    We were overlooking a transfer full here.

 gtk/inspector/css-node-tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/inspector/css-node-tree.c b/gtk/inspector/css-node-tree.c
index 5b57feabbf..15d8141d13 100644
--- a/gtk/inspector/css-node-tree.c
+++ b/gtk/inspector/css-node-tree.c
@@ -539,7 +539,7 @@ gtk_inspector_css_node_tree_init (GtkInspectorCssNodeTree *cnt)
   priv->prop_model = g_list_store_new (css_property_get_type ());
 
   sort_model = gtk_sort_list_model_new (G_LIST_MODEL (priv->prop_model),
-                                        gtk_column_view_get_sorter (GTK_COLUMN_VIEW (priv->prop_tree)));
+                                        g_object_ref (gtk_column_view_get_sorter (GTK_COLUMN_VIEW 
(priv->prop_tree))));
 
   gtk_column_view_set_model (GTK_COLUMN_VIEW (priv->prop_tree),
                              GTK_SELECTION_MODEL (gtk_no_selection_new (G_LIST_MODEL (sort_model))));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]