columnlistitemfactory: Plug a leak

g_list_model_get_item is transfer full.
This commit is contained in:
Matthias Clasen 2020-07-16 08:46:44 -04:00
parent 2d1135fba6
commit df01c5c7a4

View File

@ -62,10 +62,12 @@ gtk_column_list_item_factory_setup (GtkListItemFactory *factory,
{ {
GtkColumnViewColumn *column = g_list_model_get_item (columns, i); 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, list_item->owner,
column, column,
FALSE); FALSE);
g_object_unref (column);
} }
} }