mirror of https://github.com/mpv-player/mpv
ao_alsa: fix a small memory leak
This commit is contained in:
parent
371b52e377
commit
4ebed102f0
|
@ -615,6 +615,8 @@ static int init(struct ao *ao)
|
|||
} else {
|
||||
CHECK_ALSA_WARN("Channel map setup failed");
|
||||
}
|
||||
|
||||
free(alsa_chmap);
|
||||
}
|
||||
|
||||
snd_pcm_chmap_t *alsa_chmap = snd_pcm_get_chmap(p->alsa);
|
||||
|
|
Loading…
Reference in New Issue