#include <babeltrace/compiler-internal.h>
#include <babeltrace/graph/component-class-internal.h>
-#include <babeltrace/ref.h>
+#include <babeltrace/object.h>
#include <babeltrace/types.h>
#include <babeltrace/assert-internal.h>
#include <glib.h>
goto end;
error:
- BT_PUT(class);
+ BT_OBJECT_PUT_REF_AND_RESET(class);
ret = -1;
end: