X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fgraph%2Fcomponent.c;h=8664e3b423fb4a19ef2f70dc73adf2731ee422e6;hb=c42ea0af12bb273cd7a1131f38f0a1cb4b42a8e2;hp=9fad68ac968074a71c0aeb6c017c954599e85e25;hpb=49682acd61d65c4986fc2b61c13d7d7a2d28127e;p=babeltrace.git diff --git a/lib/graph/component.c b/lib/graph/component.c index 9fad68ac..8664e3b4 100644 --- a/lib/graph/component.c +++ b/lib/graph/component.c @@ -554,7 +554,7 @@ void bt_component_remove_port_by_index(struct bt_component *component, /* Disconnect both ports of this port's connection, if any */ if (port->connection) { - bt_connection_disconnect_ports(port->connection); + bt_connection_end(port->connection, true); } /* Remove from parent's array of ports (weak refs) */