[glib] GMainLoop: match of parameter pair of LOCK_CONTEXT/UNLOCK_CONTEXT
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GMainLoop: match of parameter pair of LOCK_CONTEXT/UNLOCK_CONTEXT
- Date: Fri, 8 Sep 2017 14:58:17 +0000 (UTC)
commit 61cb8b232b90db551ccf1814ed696a48acc38a54
Author: INSUN PYO <insun pyo samsung com>
Date: Sat Sep 2 02:21:14 2017 +0900
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gmain.c b/glib/gmain.c
index 8d6b2ce..7b71297 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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]