lib: update and simplify the `bt_object` API
[babeltrace.git] / lib / ctf-writer / clock.c
index 106947e2cc05cc76d88c6a72afd93233928892e0..0437207b1fa3c56eec05811aa16a27435db80b65 100644 (file)
@@ -57,7 +57,7 @@ struct bt_ctf_clock *bt_ctf_clock_create(const char *name)
                goto error;
        }
 
-       bt_object_init(clock, bt_ctf_clock_destroy);
+       bt_object_init_shared(&clock->base, bt_ctf_clock_destroy);
        clock->value = 0;
 
        /* Pre-2.0.0 backward compatibility: default frequency is 1 GHz */
This page took 0.023744 seconds and 4 git commands to generate.