mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 13:06:14 +01:00
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:
parent
087d75e3c3
commit
a62ad79f5c
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user