From c57273e68281e121b97655084ad5e922eee89235 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Wed, 14 Dec 2016 00:53:49 +0100 Subject: [PATCH] fix(alsa): Deallocate mixer element using wrapper --- src/adapters/alsa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapters/alsa.cpp b/src/adapters/alsa.cpp index 5872e1d9..5fd14623 100644 --- a/src/adapters/alsa.cpp +++ b/src/adapters/alsa.cpp @@ -180,7 +180,7 @@ alsa_mixer::~alsa_mixer() { snd_mixer_selem_id_free(m_mixerid); } if (m_mixerelement != nullptr) { - snd_mixer_elem_free(m_mixerelement); + snd_mixer_elem_remove(m_mixerelement); } if (m_hardwaremixer != nullptr) { snd_mixer_detach(m_hardwaremixer, ALSA_SOUNDCARD);