From 61cb8b232b90db551ccf1814ed696a48acc38a54 Mon Sep 17 00:00:00 2001 From: INSUN PYO Date: Sat, 2 Sep 2017 02:21:14 +0900 Subject: [PATCH] GMainLoop: match of parameter pair of LOCK_CONTEXT/UNLOCK_CONTEXT There is no reason to use source->context as as parameter of UNLOCK_CONTEXT. To avoid confusion, change to the parameter used in LOCK_CONTEXT. https://bugzilla.gnome.org/show_bug.cgi?id=787146 --- glib/gmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gmain.c b/glib/gmain.c index 8d6b2cee8..7b7129701 100644 --- a/glib/gmain.c +++ b/glib/gmain.c @@ -1786,7 +1786,7 @@ g_source_set_priority (GSource *source, LOCK_CONTEXT (context); g_source_set_priority_unlocked (source, context, priority); if (context) - UNLOCK_CONTEXT (source->context); + UNLOCK_CONTEXT (context); } /**