mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-30 10:56:37 +02:00
glib: Drop G_GNUC_MALLOC usage from various allocation functions
These are our most critically incorrect uses of G_GNUC_MALLOC. See the previous commit for details. (Backport to 2.56: Drop the grcbox.h changes.) Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/glib/issues/1465
This commit is contained in:
@@ -34,7 +34,7 @@ GLIB_AVAILABLE_IN_ALL
|
|||||||
gpointer g_slice_alloc0 (gsize block_size) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
|
gpointer g_slice_alloc0 (gsize block_size) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
|
||||||
GLIB_AVAILABLE_IN_ALL
|
GLIB_AVAILABLE_IN_ALL
|
||||||
gpointer g_slice_copy (gsize block_size,
|
gpointer g_slice_copy (gsize block_size,
|
||||||
gconstpointer mem_block) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
|
gconstpointer mem_block) G_GNUC_ALLOC_SIZE(1);
|
||||||
GLIB_AVAILABLE_IN_ALL
|
GLIB_AVAILABLE_IN_ALL
|
||||||
void g_slice_free1 (gsize block_size,
|
void g_slice_free1 (gsize block_size,
|
||||||
gpointer mem_block);
|
gpointer mem_block);
|
||||||
|
@@ -255,7 +255,7 @@ gchar* g_strescape (const gchar *source,
|
|||||||
|
|
||||||
GLIB_AVAILABLE_IN_ALL
|
GLIB_AVAILABLE_IN_ALL
|
||||||
gpointer g_memdup (gconstpointer mem,
|
gpointer g_memdup (gconstpointer mem,
|
||||||
guint byte_size) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(2);
|
guint byte_size) G_GNUC_ALLOC_SIZE(2);
|
||||||
|
|
||||||
/* NULL terminated string arrays.
|
/* NULL terminated string arrays.
|
||||||
* g_strsplit(), g_strsplit_set() split up string into max_tokens tokens
|
* g_strsplit(), g_strsplit_set() split up string into max_tokens tokens
|
||||||
|
Reference in New Issue
Block a user