projects
/
platform
/
upstream
/
libnice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74a3201
)
component_io_cb: Avoid potential deadlock
author
Jakub Adam
<jakub.adam@collabora.com>
Mon, 28 Jan 2019 13:17:18 +0000
(14:17 +0100)
committer
Jakub Adam
<jakub.adam@collabora.com>
Tue, 29 Jan 2019 11:13:05 +0000
(12:13 +0100)
Don't unref NiceAgent while holding agent mutex. If it's the last
reference, nice_agent_dispose() will try to acquire the mutex again and
deadlock.
agent/agent.c
patch
|
blob
|
history
diff --git
a/agent/agent.c
b/agent/agent.c
index
3c1cdcd
..
e918c03
100644
(file)
--- a/
agent/agent.c
+++ b/
agent/agent.c
@@
-5387,9
+5387,10
@@
done:
return !remove_source;
out:
+ agent_unlock_and_emit (agent);
+
g_object_unref (agent);
- agent_unlock_and_emit (agent);
return G_SOURCE_REMOVE;
}