X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fplugin%2Fplugin-internal.h;fp=include%2Fbabeltrace%2Fplugin%2Fplugin-internal.h;h=4cb57513a3073296637a8452df9d91ccc1aad860;hb=3fea54f69edd1780566230255da196cb6e82df62;hp=cbcf0274ca3ce71bc6db15c976093e717768a4a5;hpb=baa56d0a4425a4865c638faaed4728ece07d59c7;p=babeltrace.git diff --git a/include/babeltrace/plugin/plugin-internal.h b/include/babeltrace/plugin/plugin-internal.h index cbcf0274..4cb57513 100644 --- a/include/babeltrace/plugin/plugin-internal.h +++ b/include/babeltrace/plugin/plugin-internal.h @@ -169,7 +169,7 @@ struct bt_plugin *bt_plugin_create_empty(enum bt_plugin_type type) goto error; } - bt_object_init(plugin, bt_plugin_destroy); + bt_object_init_shared(&plugin->base, bt_plugin_destroy); plugin->type = type; /* Create empty array of component classes */ @@ -349,7 +349,7 @@ struct bt_plugin_set *bt_plugin_set_create(void) } BT_LOGD_STR("Creating empty plugin set."); - bt_object_init(plugin_set, bt_plugin_set_destroy); + bt_object_init_shared(&plugin_set->base, bt_plugin_set_destroy); plugin_set->plugins = g_ptr_array_new_with_free_func( (GDestroyNotify) bt_put);