mirror of
https://github.com/polybar/polybar.git
synced 2024-11-18 13:55:11 -05:00
fix(alsa): Deallocate mixer element using wrapper
This commit is contained in:
parent
f4529dde99
commit
c57273e682
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue