mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-12 04:04:04 +02: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:
@@ -304,7 +304,7 @@ g_object_notify_queue_add (GObject *object,
|
|||||||
{
|
{
|
||||||
G_LOCK(notify_lock);
|
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)
|
if (g_slist_find (nqueue->pspecs, pspec) == NULL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user