diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-06-10 23:22:12 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-06-10 23:22:12 +0200 |
commit | 1e8a374f2f26edbe68d2fc3c049ef7ccdf855d56 (patch) | |
tree | 4edb9cdddc3f8633a0a15a46a943d2162d5a7199 /src | |
parent | 89e3adf8cd3e0901a786274c584c89dd082eab09 (diff) |
alsa: fix bad memory access for devices that lack a mixer
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/alsa/alsa-util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/alsa/alsa-util.c b/src/modules/alsa/alsa-util.c index c03866cc..b2736252 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; |