summaryrefslogtreecommitdiff
path: root/gtk/gtkfilterlistmodel.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkfilterlistmodel.c')
-rw-r--r--gtk/gtkfilterlistmodel.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/gtkfilterlistmodel.c b/gtk/gtkfilterlistmodel.c
index a02ad57abf..52d3c860d9 100644
--- a/gtk/gtkfilterlistmodel.c
+++ b/gtk/gtkfilterlistmodel.c
@@ -614,8 +614,8 @@ gtk_filter_list_model_init (GtkFilterListModel *self)
/**
* gtk_filter_list_model_new:
- * @model: (allow-none): the model to sort
- * @filter: (allow-none): filter or %NULL to not filter items
+ * @model: (allow-none) (transfer full): the model to sort, or %NULL
+ * @filter: (allow-none) (transfer full): filter or %NULL to not filter items
*
* Creates a new #GtkFilterListModel that will filter @model using the given
* @filter.
@@ -636,6 +636,10 @@ gtk_filter_list_model_new (GListModel *model,
"filter", filter,
NULL);
+ /* consume the references */
+ g_clear_object (&model);
+ g_clear_object (&filter);
+
return result;
}