mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
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:
parent
a247f7c581
commit
8fa5bdc087
1 changed files with 2 additions and 0 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue