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.
This commit is contained in:
Tobias Stoeckmann
2025-08-11 21:33:25 +02:00
parent 537a33a49f
commit 3368a9cc7a

View File

@@ -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,