[pulseaudio-commits] src/modules

Tanu Kaskinen tanuk at kemper.freedesktop.org
Mon Apr 2 07:57:24 PDT 2012


 src/modules/module-loopback.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit b762f4eef10fd90c4e85e574b4fcf9429ce1cbe3
Author: Frédéric Dalleau <frederic.dalleau at linux.intel.com>
Date:   Mon Apr 2 11:16:03 2012 +0200

    loopback: Fix crash on error during init
    
    If an error during pa__init() causes a jump to fail: u->asyncmsgq is not
    initialized.

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) {



More information about the pulseaudio-commits mailing list