- sink_component = bt_component_create(sink_comp_class, NULL, NULL);
- ok(sink_component, "bt_component_create() still works after the source component class object is destroyed");
+ bt_put(graph);
+ graph = bt_graph_create();
+ assert(graph);
+ ret = bt_graph_add_component(graph, sink_comp_class, "the-sink", NULL,
+ &sink_component);
+ ok(ret == 0 && sink_component,
+ "bt_graph_add_component() still works after the source component class object is destroyed");