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
This commit is contained in:
Matthias Clasen 2015-09-07 19:57:53 -04:00
parent 087d75e3c3
commit a62ad79f5c

View File

@ -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)
{