thread-mq: Initialize thread_mainloop to NULL if not in use

Fixes a crash when unloading module-zeroconf-publish.

Signed-off-by: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
This commit is contained in:
Jan Alexander Steffens (heftig) 2013-12-17 00:07:11 +01:00 committed by Tanu Kaskinen
parent a247f7c581
commit 8fa5bdc087

View file

@ -126,6 +126,8 @@ void pa_thread_mq_init(pa_thread_mq *q, pa_mainloop_api *mainloop, pa_rtpoll *rt
pa_assert(mainloop);
q->main_mainloop = mainloop;
q->thread_mainloop = NULL;
pa_assert_se(q->inq = pa_asyncmsgq_new(0));
pa_assert_se(q->outq = pa_asyncmsgq_new(0));