lib: update and simplify the `bt_object` API
[babeltrace.git] / lib / ctf-ir / field-path.c
index 61a57fe3864a5c97dedd599865e4a13b9ca3e259..d9893059e4bb8001e3e2ae14269dd71191542f9f 100644 (file)
@@ -68,7 +68,7 @@ struct bt_field_path *bt_field_path_create(void)
                goto error;
        }
 
-       bt_object_init(field_path, field_path_destroy);
+       bt_object_init_shared(&field_path->base, field_path_destroy);
        field_path->root = BT_SCOPE_UNKNOWN;
        field_path->indexes = g_array_new(TRUE, FALSE, sizeof(int));
        if (!field_path->indexes) {
This page took 0.030593 seconds and 4 git commands to generate.