mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
glib: annotate some memory functions with allow-none
This commit is contained in:
parent
f37439c1b1
commit
1c8035066e
@ -145,7 +145,7 @@ g_malloc0 (gsize n_bytes)
|
||||
|
||||
/**
|
||||
* g_realloc:
|
||||
* @mem: the memory to reallocate
|
||||
* @mem: (allow-none): the memory to reallocate
|
||||
* @n_bytes: new size of the memory in bytes
|
||||
*
|
||||
* Reallocates the memory pointed to by @mem, so that it now has space for
|
||||
@ -183,7 +183,7 @@ g_realloc (gpointer mem,
|
||||
|
||||
/**
|
||||
* g_free:
|
||||
* @mem: the memory to free
|
||||
* @mem: (allow-none): the memory to free
|
||||
*
|
||||
* Frees the memory pointed to by @mem.
|
||||
* If @mem is %NULL it simply returns.
|
||||
@ -369,7 +369,7 @@ g_malloc0_n (gsize n_blocks,
|
||||
|
||||
/**
|
||||
* g_realloc_n:
|
||||
* @mem: the memory to reallocate
|
||||
* @mem: (allow-none): the memory to reallocate
|
||||
* @n_blocks: the number of blocks to allocate
|
||||
* @n_block_bytes: the size of each block in bytes
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user