alsa-mixer: Drop redundant conditional frees

The dynarrays are allocated unconditionally, so the free need not be
conditional.
This commit is contained in:
Arun Raghavan 2015-08-25 19:27:24 +05:30
parent 38e81f4c3d
commit 5071960bf3

View file

@ -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) { void pa_alsa_jack_free(pa_alsa_jack *jack) {
pa_assert(jack); pa_assert(jack);
if (jack->ucm_hw_mute_devices) pa_dynarray_free(jack->ucm_hw_mute_devices);
pa_dynarray_free(jack->ucm_hw_mute_devices); pa_dynarray_free(jack->ucm_devices);
if (jack->ucm_devices)
pa_dynarray_free(jack->ucm_devices);
pa_xfree(jack->alsa_name); pa_xfree(jack->alsa_name);
pa_xfree(jack->name); pa_xfree(jack->name);