mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
alsa: fix bad memory access for devices that lack a mixer
This commit is contained in:
parent
89e3adf8cd
commit
1e8a374f2f
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue