From 637abb506d7b1d056e9319fd2b9584416d19c8c0 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Fri, 2 Aug 2024 14:20:36 -0700 Subject: [PATCH] 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 fab6595562a9600f2d4d8c58b96bb1df699cd0c5) --- glib/gmappedfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gmappedfile.c b/glib/gmappedfile.c index 4d7a89eb2..1a3b224e4 100644 --- a/glib/gmappedfile.c +++ b/glib/gmappedfile.c @@ -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 */