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); } /**