From 3368a9cc7a817efacc7d158164bca99de6cd16b3 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Mon, 11 Aug 2025 21:33:25 +0200 Subject: [PATCH] ghook: Add transfer full to ref return value Add explicitly transfer full annotation to g_hook_ref. Without it, the gir file and generated documentations pretend that returned value is owned by the called function (transfer none) which is not correct. --- glib/ghook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/ghook.c b/glib/ghook.c index 2c38dbca6..2da857d28 100644 --- a/glib/ghook.c +++ b/glib/ghook.c @@ -403,7 +403,7 @@ g_hook_unref (GHookList *hook_list, * * Increments the reference count for a #GHook. * - * Returns: the @hook that was passed in (since 2.6) + * Returns: (transfer full): the @hook that was passed in (since 2.6) */ GHook * g_hook_ref (GHookList *hook_list,