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.


(cherry picked from commit fab6595562)
This commit is contained in:
Christian Hergert 2024-08-02 14:20:36 -07:00 committed by Michael Catanzaro
parent 5706816a44
commit 637abb506d

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
*/