mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-10 21:03:51 +01:00
gobject: use g_malloc() allocator for GObjectNotifyQueue struct
The GSlice allocator is deprecated. Use g_new0() instead.
This commit is contained in:
parent
630d8da211
commit
42bd9627a5
@ -210,7 +210,7 @@ g_object_notify_queue_free (gpointer data)
|
|||||||
GObjectNotifyQueue *nqueue = data;
|
GObjectNotifyQueue *nqueue = data;
|
||||||
|
|
||||||
g_slist_free (nqueue->pspecs);
|
g_slist_free (nqueue->pspecs);
|
||||||
g_slice_free (GObjectNotifyQueue, nqueue);
|
g_free_sized (nqueue, sizeof (GObjectNotifyQueue));
|
||||||
}
|
}
|
||||||
|
|
||||||
static GObjectNotifyQueue *
|
static GObjectNotifyQueue *
|
||||||
@ -218,7 +218,7 @@ g_object_notify_queue_create_queue_frozen (GObject *object)
|
|||||||
{
|
{
|
||||||
GObjectNotifyQueue *nqueue;
|
GObjectNotifyQueue *nqueue;
|
||||||
|
|
||||||
nqueue = g_slice_new0 (GObjectNotifyQueue);
|
nqueue = g_new0 (GObjectNotifyQueue, 1);
|
||||||
|
|
||||||
*nqueue = (GObjectNotifyQueue){
|
*nqueue = (GObjectNotifyQueue){
|
||||||
.freeze_count = 1,
|
.freeze_count = 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user