alsa: Use pa_device_port->impl_free() for freeing port data

This allows us to clean up ucm port data associated with a port during
port clean up, instead of having to track this separately using a
dynarray.
This commit is contained in:
Arun Raghavan 2016-05-03 18:22:09 +05:30 committed by Arun Raghavan
parent 9e10c1caa3
commit b793f68f2e
3 changed files with 16 additions and 23 deletions

View file

@ -4754,6 +4754,7 @@ static pa_device_port* device_port_alsa_init(pa_hashmap *ports, /* card ports */
pa_proplist_update(p->proplist, PA_UPDATE_REPLACE, path->proplist);
data = PA_DEVICE_PORT_DATA(p);
/* Ownership of the path and setting is not transferred to the port data, so we don't deal with freeing them */
data->path = path;
data->setting = setting;
path->port = p;