mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
gst: only remove port once
The port has node_data set/cleared when it is added/removed to/from the node. Make sure we only remove the port once to avoid a valgrind error.
This commit is contained in:
parent
7a9dfc188a
commit
4437f6e000
1 changed files with 4 additions and 1 deletions
|
|
@ -486,7 +486,10 @@ destroy_port (void *data)
|
|||
{
|
||||
struct port_data *pd = data;
|
||||
pw_log_debug("destroy %p", pd);
|
||||
spa_list_remove(&pd->link);
|
||||
if (pd->node_data != NULL) {
|
||||
spa_list_remove(&pd->link);
|
||||
pd->node_data = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static const struct pw_proxy_events proxy_port_events = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue