mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-25 11:42:10 +01:00
g_private_new: use GSlice
We no longer call g_private_new() from anywhere in GLib, so we can use gslice instead of malloc().
This commit is contained in:
parent
0ebd842d24
commit
835c9b75c8
@ -2455,7 +2455,7 @@ g_private_new (GDestroyNotify notify)
|
||||
{
|
||||
GPrivate *key;
|
||||
|
||||
key = malloc (sizeof (GPrivate));
|
||||
key = g_slice_new (GPrivate);
|
||||
g_private_init (key, notify);
|
||||
|
||||
return key;
|
||||
|
Loading…
x
Reference in New Issue
Block a user