Commit 047455fe authored by Jakub Adam's avatar Jakub Adam

component_io_cb: Avoid potential deadlock

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.
parent 74a32018
...@@ -5387,9 +5387,10 @@ done: ...@@ -5387,9 +5387,10 @@ done:
return !remove_source; return !remove_source;
out: out:
agent_unlock_and_emit (agent);
g_object_unref (agent); g_object_unref (agent);
agent_unlock_and_emit (agent);
return G_SOURCE_REMOVE; return G_SOURCE_REMOVE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment