component_io_cb: Avoid potential deadlock
authorJakub Adam <jakub.adam@collabora.com>
Mon, 28 Jan 2019 13:17:18 +0000 (14:17 +0100)
committerJakub Adam <jakub.adam@collabora.com>
Tue, 29 Jan 2019 11:13:05 +0000 (12:13 +0100)
commit047455fe8d1164bbae9ef233073d757a6b999952
tree74a760108cc04de603c3c8d9c84f65fdd97c30de
parent74a3201819bfcaaad30d76a03cf2a4fe0b8aa660
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.
agent/agent.c