[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, master, updated. v0.9.15-185-g1e8a374

Lennart Poettering gitmailer-noreply at 0pointer.de
Wed Jun 10 15:40:54 PDT 2009


This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.

The master branch has been updated
      from  89e3adf8cd3e0901a786274c584c89dd082eab09 (commit)

- Log -----------------------------------------------------------------
1e8a374 alsa: fix bad memory access for devices that lack a mixer
-----------------------------------------------------------------------

Summary of changes:
 src/modules/alsa/alsa-util.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

-----------------------------------------------------------------------

commit 1e8a374f2f26edbe68d2fc3c049ef7ccdf855d56
Author: Lennart Poettering <lennart at poettering.net>
Date:   Wed Jun 10 23:22:12 2009 +0200

    alsa: fix bad memory access for devices that lack a mixer

diff --git a/src/modules/alsa/alsa-util.c b/src/modules/alsa/alsa-util.c
index c03866c..b273625 100644
--- a/src/modules/alsa/alsa-util.c
+++ b/src/modules/alsa/alsa-util.c
@@ -1289,8 +1289,10 @@ int pa_alsa_find_mixer_and_elem(
     }
 
     if (!e) {
-        if (ctl_device)
+        if (ctl_device) {
             pa_xfree(*ctl_device);
+            *ctl_device = NULL;
+        }
 
         snd_mixer_close(m);
         return -1;

-- 
hooks/post-receive
PulseAudio Sound Server



More information about the pulseaudio-commits mailing list