]> code.delx.au - pulseaudio/commit
tunnel-sink-new: Fix a possible crash
authorAlexander Couzens <lynxis@fe80.eu>
Mon, 16 Sep 2013 11:06:27 +0000 (13:06 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Fri, 4 Oct 2013 11:30:26 +0000 (14:30 +0300)
commit3fd2004603b1df207e21fde846c0ea0bd4f96aa2
tree492fefabf945c0c7a0d7d42e936899afab007479
parent0c3f3934f59e001dc64d29dd226fe9ceac74337a
tunnel-sink-new: Fix a possible crash

When the creation of u->thread fails, then pa_thread_mq_done() in
pa__done() will crash, because pa_thread_mq_init() was never called.
Allocating the thread_mq object separately, instead of embedding it
in the userdata struct, allows pa__done() to call pa_thread_mq_done()
only when necessary.
src/modules/module-tunnel-sink-new.c