diff options
Diffstat (limited to 'src/mixer/mixer.c')
-rw-r--r-- | src/mixer/mixer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mixer/mixer.c b/src/mixer/mixer.c index 5ef0ba79..d2edeea8 100644 --- a/src/mixer/mixer.c +++ b/src/mixer/mixer.c @@ -607,10 +607,8 @@ int snd_mixer_close(snd_mixer_t *mixer) } assert(list_empty(&mixer->elems)); assert(mixer->count == 0); - if (mixer->pelems) { - free(mixer->pelems); - mixer->pelems = NULL; - } + free(mixer->pelems); + mixer->pelems = NULL; while (!list_empty(&mixer->slaves)) { int err; snd_mixer_slave_t *s; |