lib: update and simplify the `bt_object` API
[babeltrace.git] / lib / graph / component-class.c
index 1df85b48f1baa0b4c79ee100c857fd13308dcc3d..7ce6667fc6c03957edd65fc994e13fa249410b65 100644 (file)
@@ -84,7 +84,7 @@ int bt_component_class_init(struct bt_component_class *class,
 {
        int ret = 0;
 
-       bt_object_init(class, bt_component_class_destroy);
+       bt_object_init_shared(&class->base, bt_component_class_destroy);
        class->type = type;
        class->name = g_string_new(name);
        if (!class->name) {
This page took 0.024381 seconds and 4 git commands to generate.