gobject: Remove unsynchronized read of freeze_count

There is no need to preserve the check, since check is performed again
while holding the notify_locks that protects freeze_count.
This commit is contained in:
Tomasz Miąsko 2019-02-21 00:00:00 +00:00
parent 5eb9f9f214
commit d72192f69b

View File

@ -263,7 +263,6 @@ g_object_notify_queue_thaw (GObject *object,
GSList *slist; GSList *slist;
guint n_pspecs = 0; guint n_pspecs = 0;
g_return_if_fail (nqueue->freeze_count > 0);
g_return_if_fail (g_atomic_int_get(&object->ref_count) > 0); g_return_if_fail (g_atomic_int_get(&object->ref_count) > 0);
G_LOCK(notify_lock); G_LOCK(notify_lock);