mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-26 03:47:52 +02:00
fix unconditional check of first GParamSpec in
* gobject/gobjectnotifyqueue.c: fix unconditional check of first GParamSpec in g_object_notify_queue_thaw(); prevent property notification being lost
This commit is contained in:
@@ -104,6 +104,8 @@ g_object_notify_queue_thaw (GObject *object,
|
||||
g_return_if_fail (object->ref_count > 0);
|
||||
|
||||
pspecs = nqueue->n_pspecs > 16 ? free_me = g_new (GParamSpec*, nqueue->n_pspecs) : pspecs_mem;
|
||||
/* set first entry to NULL since it's checked unconditionally */
|
||||
pspecs[0] = NULL;
|
||||
for (slist = nqueue->pspecs; slist; slist = slist->next)
|
||||
{
|
||||
GParamSpec *pspec = slist->data;
|
||||
|
Reference in New Issue
Block a user