mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-14 20:02:38 +00: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
|
@ -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…
Reference in a new issue