gkeyfile: Add missing (transfer full) annotations to ref/free functions

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall
2025-02-04 14:51:41 +00:00
parent 9c5409e229
commit 7ca70303b7

View File

@@ -1165,7 +1165,7 @@ g_key_file_load_from_data_dirs (GKeyFile *key_file,
*
* Increases the reference count of @key_file.
*
* Returns: the same @key_file.
* Returns: (transfer full): the same @key_file.
*
* Since: 2.32
**/
@@ -1181,7 +1181,7 @@ g_key_file_ref (GKeyFile *key_file)
/**
* g_key_file_free: (skip)
* @key_file: a #GKeyFile
* @key_file: (transfer full): a #GKeyFile
*
* Clears all keys and groups from @key_file, and decreases the
* reference count by 1. If the reference count reaches zero,
@@ -1204,7 +1204,7 @@ g_key_file_free (GKeyFile *key_file)
/**
* g_key_file_unref:
* @key_file: a #GKeyFile
* @key_file: (transfer full): a #GKeyFile
*
* Decreases the reference count of @key_file by 1. If the reference count
* reaches zero, frees the key file and all its allocated memory.