From a62ad79f5c59152d1a52c3b52d969c3c48390cda Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 7 Sep 2015 19:57:53 -0400 Subject: [PATCH] Clean up locking in g_object_notify_queue_add Instaed of returning with the lock held, simply assert that this cannot happen: https://bugzilla.gnome.org/show_bug.cgi?id=749678#c4 --- gobject/gobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gobject/gobject.c b/gobject/gobject.c index 93f380c85..89ad66fcc 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -304,7 +304,7 @@ g_object_notify_queue_add (GObject *object, { G_LOCK(notify_lock); - g_return_if_fail (nqueue->n_pspecs < 65535); + g_assert (nqueue->n_pspecs < 65535); if (g_slist_find (nqueue->pspecs, pspec) == NULL) {