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
Pipeline #16750 passed with stages
in 6 minutes and 36 seconds
......@@ -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;
}
......
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