glib/mappedfile: g_mapped_file_get_contents() does not transfer

This fixes the annoations for g_mapped_file_get_contents() which looks
like it might transfer ownership (due to being a char*) but does not as
we're pointing into the mmap() region.
This commit is contained in:
Christian Hergert 2024-08-02 14:20:36 -07:00
parent ce5e11aef4
commit fab6595562

View File

@ -340,7 +340,7 @@ g_mapped_file_get_length (GMappedFile *file)
*
* If the file is empty then %NULL is returned.
*
* Returns: the contents of @file, or %NULL.
* Returns: (transfer none) (nullable): the contents of @file, or %NULL.
*
* Since: 2.8
*/