diff options
author | Frédéric Dalleau <frederic.dalleau@linux.intel.com> | 2012-04-02 11:16:03 +0200 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2012-04-02 17:47:04 +0300 |
commit | b762f4eef10fd90c4e85e574b4fcf9429ce1cbe3 (patch) | |
tree | 87e2b196af3584b8169a49cef655b6932bc4bc53 /src | |
parent | 1c134f45170df1832a982e4653a4054d53a08bf9 (diff) |
loopback: Fix crash on error during init
If an error during pa__init() causes a jump to fail: u->asyncmsgq is not
initialized.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/module-loopback.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/module-loopback.c b/src/modules/module-loopback.c index ba624530..0d65682c 100644 --- a/src/modules/module-loopback.c +++ b/src/modules/module-loopback.c @@ -136,7 +136,8 @@ static void teardown(struct userdata *u) { pa_assert(u); pa_assert_ctl_context(); - pa_asyncmsgq_flush(u->asyncmsgq, 0); + if (u->asyncmsgq) + pa_asyncmsgq_flush(u->asyncmsgq, 0); u->adjust_time = 0; if (u->time_event) { |