mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
parent
ce5e11aef4
commit
fab6595562
@ -340,7 +340,7 @@ g_mapped_file_get_length (GMappedFile *file)
|
|||||||
*
|
*
|
||||||
* If the file is empty then %NULL is returned.
|
* 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
|
* Since: 2.8
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user