mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
loopback: Fix crash on error during init
If an error during pa__init() causes a jump to fail: u->asyncmsgq is not initialized.
This commit is contained in:
parent
1c134f4517
commit
b762f4eef1
1 changed files with 2 additions and 1 deletions
|
|
@ -136,6 +136,7 @@ static void teardown(struct userdata *u) {
|
||||||
pa_assert(u);
|
pa_assert(u);
|
||||||
pa_assert_ctl_context();
|
pa_assert_ctl_context();
|
||||||
|
|
||||||
|
if (u->asyncmsgq)
|
||||||
pa_asyncmsgq_flush(u->asyncmsgq, 0);
|
pa_asyncmsgq_flush(u->asyncmsgq, 0);
|
||||||
|
|
||||||
u->adjust_time = 0;
|
u->adjust_time = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue