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:
Padraig O'Briain
2001-07-23 17:08:24 +00:00
parent d403f5f219
commit 8caf4a8c43
9 changed files with 50 additions and 0 deletions

View File

@@ -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;