mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
Fix some possible leaks.
This commit is contained in:
parent
fa5b04f3e5
commit
6224068586
3 changed files with 11 additions and 1 deletions
|
|
@ -1702,7 +1702,8 @@ static pa_alsa_jack* ucm_get_jack(pa_alsa_ucm_config *ucm, pa_alsa_ucm_device *d
|
|||
mixer_device_name = get_jack_mixer_device(device, false);
|
||||
if (!mixer_device_name) {
|
||||
pa_log("[%s] No mixer device name for JackControl \"%s\"", device_name, jack_control);
|
||||
return NULL;
|
||||
j = NULL;
|
||||
goto finish;
|
||||
}
|
||||
j = pa_alsa_jack_new(NULL, mixer_device_name, name);
|
||||
PA_LLIST_PREPEND(pa_alsa_jack, ucm->jacks, j);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue