[pulseaudio-discuss] [PATCH] loopback: Fix crash on error during init
Frédéric Dalleau
frederic.dalleau at linux.intel.com
Mon Apr 2 02:16:03 PDT 2012
If an error during pa__init() causes a jump to fail: u->asyncmsgq is not
initialized.
---
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 ba62453..0d65682 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) {
--
1.7.5.4
More information about the pulseaudio-discuss
mailing list