lib: update and simplify the `bt_object` API
[babeltrace.git] / lib / graph / query-executor.c
index 89ae9a11c39712f28fbdc194b41fe0ef0dff79ac..bd9b5377ad2dc8986f1fe01b25b890c0d2308bf8 100644 (file)
@@ -52,7 +52,8 @@ struct bt_query_executor *bt_query_executor_create(void)
                goto end;
        }
 
-       bt_object_init(query_exec, bt_query_executor_destroy);
+       bt_object_init_shared(&query_exec->base,
+               bt_query_executor_destroy);
        BT_LOGD("Created query executor: addr=%p", query_exec);
 
 end:
This page took 0.023132 seconds and 4 git commands to generate.