[gtk/matthiasc/for-master: 4/12] columnlistitemfactory: Plug a leak



commit df01c5c7a4693258afcd1b20242a663a11abe0cd
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jul 16 08:46:44 2020 -0400

    columnlistitemfactory: Plug a leak
    
    g_list_model_get_item is transfer full.

 gtk/gtkcolumnlistitemfactory.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkcolumnlistitemfactory.c b/gtk/gtkcolumnlistitemfactory.c
index 0b2151f12f..e6188cb4d4 100644
--- a/gtk/gtkcolumnlistitemfactory.c
+++ b/gtk/gtkcolumnlistitemfactory.c
@@ -62,10 +62,12 @@ gtk_column_list_item_factory_setup (GtkListItemFactory *factory,
     {
       GtkColumnViewColumn *column = g_list_model_get_item (columns, i);
 
-      gtk_column_list_item_factory_add_column (self, 
+      gtk_column_list_item_factory_add_column (self,
                                                list_item->owner,
                                                column,
                                                FALSE);
+
+      g_object_unref (column);
     }
 }
 


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