Merge branch 'backport-1691-source-locking-glib-2-66' into 'glib-2-66'

Backport !1691 “gmain: Fix possible locking issue in source unref” to glib-2-66

See merge request GNOME/glib!1693
This commit is contained in:
Sebastian Dröge 2020-10-14 11:31:38 +00:00
commit 8cbe2da75e

View File

@ -2293,7 +2293,7 @@ g_source_unref_internal (GSource *source,
g_slist_remove (source->priv->child_sources, child_source);
child_source->priv->parent_source = NULL;
g_source_unref_internal (child_source, context, have_lock);
g_source_unref_internal (child_source, context, TRUE);
}
g_slice_free (GSourcePrivate, source->priv);