diff options
Diffstat (limited to 'gtk/gtkflattenlistmodel.c')
-rw-r--r-- | gtk/gtkflattenlistmodel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkflattenlistmodel.c b/gtk/gtkflattenlistmodel.c index f4398d853c..cea983f8da 100644 --- a/gtk/gtkflattenlistmodel.c +++ b/gtk/gtkflattenlistmodel.c @@ -425,7 +425,7 @@ gtk_flatten_list_model_init (GtkFlattenListModel *self) /** * gtk_flatten_list_model_new: - * @model: (nullable) (transfer none): the model to be flattened + * @model: (nullable) (transfer full): the model to be flattened * * Creates a new #GtkFlattenListModel that flattens @list. * @@ -442,6 +442,9 @@ gtk_flatten_list_model_new (GListModel *model) "model", model, NULL); + /* we consume the reference */ + g_clear_object (&model); + return result; } |