Fix: release the reference held by a child to its former parent
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 10 Mar 2017 19:11:29 +0000 (14:11 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:38 +0000 (12:57 -0400)
commit5ed184457e505c1cf104918ebec0fc2ce528d89d
tree605f9486bf2e965ad92fb8c3befb72832039c52c
parentae3b9aa4e260f2ab0bfa352b36589cb8d1ba4a85
Fix: release the reference held by a child to its former parent

The bt_object class' bt_object_set_parent() increments the reference
count of the parent since the child now holds a reference to it.
This assumes that a child is externally visible when this call is
made (as is always the case currently).

The parent of a child can be changed in the future. In this case,
we want to ensure the reference it held to its former parent is
released.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/object-internal.h
This page took 0.025186 seconds and 4 git commands to generate.