lib: update and simplify the `bt_object` API
[babeltrace.git] / lib / graph / clock-class-priority-map.c
index 2d1dc5201f98a2f0eab1a90bd276598f08c7601b..e8f9654b2eaef61f73e16d28b9a5b9816353fba7 100644 (file)
@@ -70,7 +70,8 @@ struct bt_clock_class_priority_map *bt_clock_class_priority_map_create()
                goto error;
        }
 
-       bt_object_init(cc_prio_map, bt_clock_class_priority_map_destroy);
+       bt_object_init_shared(&cc_prio_map->base,
+               bt_clock_class_priority_map_destroy);
        cc_prio_map->entries = g_ptr_array_new_with_free_func(
                (GDestroyNotify) bt_put);
        if (!cc_prio_map->entries) {
This page took 0.024814 seconds and 4 git commands to generate.