diff options
Diffstat (limited to 'src/modules/mixer')
-rw-r--r-- | src/modules/mixer/mixer.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/modules/mixer/mixer.c b/src/modules/mixer/mixer.c index d8c1326..cf57d3d 100644 --- a/src/modules/mixer/mixer.c +++ b/src/modules/mixer/mixer.c @@ -318,12 +318,10 @@ static void mixer_setup_free(til_setup_t *setup) { mixer_setup_t *s = (mixer_setup_t *)setup; - if (s) { - for (size_t i = 0; i < nelems(s->inputs); i++) - til_setup_free(s->inputs[i].setup); + for (size_t i = 0; i < nelems(s->inputs); i++) + til_setup_free(s->inputs[i].setup); - free(setup); - } + free(setup); } |