lib: update and simplify the `bt_object` API
[babeltrace.git] / lib / plugin / plugin-so.c
index 2326ed8f2adadf7c912d4bf2e65da13751eae01f..648f95d1e5af7521a3e5b7fb52d30d5a0b78e3d9 100644 (file)
@@ -175,7 +175,8 @@ struct bt_plugin_so_shared_lib_handle *bt_plugin_so_shared_lib_handle_create(
                goto error;
        }
 
-       bt_object_init(shared_lib_handle, bt_plugin_so_shared_lib_handle_destroy);
+       bt_object_init_shared(&shared_lib_handle->base,
+               bt_plugin_so_shared_lib_handle_destroy);
 
        if (!path) {
                goto end;
This page took 0.024297 seconds and 4 git commands to generate.