End connection on destruction
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 7 Jun 2017 22:31:41 +0000 (18:31 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 9 Jun 2017 21:03:27 +0000 (17:03 -0400)
commitc42ea0af12bb273cd7a1131f38f0a1cb4b42a8e2
tree7aff6c1197e454b42faf941d3608d74940b5913f
parent49682acd61d65c4986fc2b61c13d7d7a2d28127e
End connection on destruction

End connection on destruction so that each port is disconnected once the
connection is destroyed. Otherwise each port keeps its connection
pointer as is which point to freed memory.

bt_connection_end() already makes sure to finalize each created
notification iterator, so all is left in the destructor is to free the
array of iterators and the connection itself.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/graph/connection-internal.h
lib/graph/component.c
lib/graph/connection.c
lib/graph/port.c
This page took 0.024536 seconds and 4 git commands to generate.