*/
#include <babeltrace/ctf-writer/visitor-internal.h>
-#include <babeltrace/ref.h>
+#include <babeltrace/ctf-writer/object.h>
BT_HIDDEN
int bt_ctf_visitor_helper(struct bt_ctf_visitor_object *root,
goto end;
}
ret = child_visitor(child, visitor, data);
- BT_PUT(child);
+ BT_CTF_OBJECT_PUT_REF_AND_RESET(child);
if (ret) {
goto end;
}