forked from AuroraMiddleware/gtk
columnlistitemfactory: Plug a leak
g_list_model_get_item is transfer full.
This commit is contained in:
parent
2d1135fba6
commit
df01c5c7a4
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user