mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
alsa-mixer: Drop redundant conditional frees
The dynarrays are allocated unconditionally, so the free need not be conditional.
This commit is contained in:
parent
38e81f4c3d
commit
5071960bf3
1 changed files with 2 additions and 5 deletions
|
|
@ -127,11 +127,8 @@ pa_alsa_jack *pa_alsa_jack_new(pa_alsa_path *path, const char *name) {
|
|||
void pa_alsa_jack_free(pa_alsa_jack *jack) {
|
||||
pa_assert(jack);
|
||||
|
||||
if (jack->ucm_hw_mute_devices)
|
||||
pa_dynarray_free(jack->ucm_hw_mute_devices);
|
||||
|
||||
if (jack->ucm_devices)
|
||||
pa_dynarray_free(jack->ucm_devices);
|
||||
pa_dynarray_free(jack->ucm_hw_mute_devices);
|
||||
pa_dynarray_free(jack->ucm_devices);
|
||||
|
||||
pa_xfree(jack->alsa_name);
|
||||
pa_xfree(jack->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue