Fix the transfer annotations for GClosure constructors

The GClosure constructors in GObject return an instance with a floating
reference.

Fixes: #2299
This commit is contained in:
Emmanuele Bassi 2021-01-18 12:16:55 +00:00 committed by Sebastian Dröge
parent 4c83079c0d
commit e97ebfe628

View File

@ -4361,9 +4361,9 @@ g_object_watch_closure (GObject *object,
* @object and the created closure. This function is mainly useful
* when implementing new types of closures.
*
* Returns: (transfer full): a newly allocated #GClosure
* Returns: (transfer floating): a newly allocated #GClosure
*/
GClosure*
GClosure *
g_closure_new_object (guint sizeof_closure,
GObject *object)
{
@ -4389,9 +4389,9 @@ g_closure_new_object (guint sizeof_closure,
* associated with a #GObject, and want the callback to no longer run
* after the object is is freed.
*
* Returns: a new #GCClosure
* Returns: (transfer floating): a new #GCClosure
*/
GClosure*
GClosure *
g_cclosure_new_object (GCallback callback_func,
GObject *object)
{
@ -4418,9 +4418,9 @@ g_cclosure_new_object (GCallback callback_func,
* associated with a #GObject, and want the callback to no longer run
* after the object is is freed.
*
* Returns: a new #GCClosure
* Returns: (transfer floating): a new #GCClosure
*/
GClosure*
GClosure *
g_cclosure_new_object_swap (GCallback callback_func,
GObject *object)
{