mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
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:
parent
9e10c1caa3
commit
b793f68f2e
3 changed files with 16 additions and 23 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue