From 8caf4a8c43950f6094d31b4b866451d14398680c Mon Sep 17 00:00:00 2001 From: Padraig O'Briain Date: Mon, 23 Jul 2001 17:08:24 +0000 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-12 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gobject/gobjectnotifyqueue.c | 2 ++ 9 files changed, 50 insertions(+) diff --git a/ChangeLog b/ChangeLog index 534c777..c584514 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-07-23 Padraig O'Briain + + * gobject/gobjectnotifyqueue.c: fix unconditional check of + first GParamSpec in g_object_notify_queue_thaw(); prevent + property notification being lost + 2001-07-23 Ron Steinke * glib/giochannel.c: fixed g_io_channel_seek_position() so that diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 534c777..c584514 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +2001-07-23 Padraig O'Briain + + * gobject/gobjectnotifyqueue.c: fix unconditional check of + first GParamSpec in g_object_notify_queue_thaw(); prevent + property notification being lost + 2001-07-23 Ron Steinke * glib/giochannel.c: fixed g_io_channel_seek_position() so that diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 534c777..c584514 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2001-07-23 Padraig O'Briain + + * gobject/gobjectnotifyqueue.c: fix unconditional check of + first GParamSpec in g_object_notify_queue_thaw(); prevent + property notification being lost + 2001-07-23 Ron Steinke * glib/giochannel.c: fixed g_io_channel_seek_position() so that diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 534c777..c584514 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +2001-07-23 Padraig O'Briain + + * gobject/gobjectnotifyqueue.c: fix unconditional check of + first GParamSpec in g_object_notify_queue_thaw(); prevent + property notification being lost + 2001-07-23 Ron Steinke * glib/giochannel.c: fixed g_io_channel_seek_position() so that diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 534c777..c584514 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +2001-07-23 Padraig O'Briain + + * gobject/gobjectnotifyqueue.c: fix unconditional check of + first GParamSpec in g_object_notify_queue_thaw(); prevent + property notification being lost + 2001-07-23 Ron Steinke * glib/giochannel.c: fixed g_io_channel_seek_position() so that diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 534c777..c584514 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +2001-07-23 Padraig O'Briain + + * gobject/gobjectnotifyqueue.c: fix unconditional check of + first GParamSpec in g_object_notify_queue_thaw(); prevent + property notification being lost + 2001-07-23 Ron Steinke * glib/giochannel.c: fixed g_io_channel_seek_position() so that diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 534c777..c584514 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2001-07-23 Padraig O'Briain + + * gobject/gobjectnotifyqueue.c: fix unconditional check of + first GParamSpec in g_object_notify_queue_thaw(); prevent + property notification being lost + 2001-07-23 Ron Steinke * glib/giochannel.c: fixed g_io_channel_seek_position() so that diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 534c777..c584514 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2001-07-23 Padraig O'Briain + + * gobject/gobjectnotifyqueue.c: fix unconditional check of + first GParamSpec in g_object_notify_queue_thaw(); prevent + property notification being lost + 2001-07-23 Ron Steinke * glib/giochannel.c: fixed g_io_channel_seek_position() so that diff --git a/gobject/gobjectnotifyqueue.c b/gobject/gobjectnotifyqueue.c index 940a231..ef3cbce 100644 --- a/gobject/gobjectnotifyqueue.c +++ b/gobject/gobjectnotifyqueue.c @@ -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; -- 2.7.4