mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-01 19:36:37 +02:00
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:
@@ -403,7 +403,7 @@ g_hook_unref (GHookList *hook_list,
|
|||||||
*
|
*
|
||||||
* Increments the reference count for a #GHook.
|
* 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 *
|
GHook *
|
||||||
g_hook_ref (GHookList *hook_list,
|
g_hook_ref (GHookList *hook_list,
|
||||||
|
Reference in New Issue
Block a user