spa: alsa: acp: fix memleak when destroying card profles

This commit is contained in:
Julian Bouzas 2021-07-07 13:27:53 -04:00
parent 33e07cc984
commit 2dcdc80030
4 changed files with 17 additions and 9 deletions

View file

@ -153,6 +153,8 @@ void pa_device_port_free(pa_device_port *port)
pa_xfree(port->availability_group);
pa_hashmap_free(port->profiles);
pa_proplist_free(port->proplist);
if (port->impl_free)
port->impl_free (port);
free(port);
}