Take ownership of component class in bt_component_source_create
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 25 Feb 2016 17:31:26 +0000 (12:31 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 16:57:26 +0000 (12:57 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/plugin-system/source.c

index e4915a98875cc3f68eb7e914170e7509af418667..97992aac56ebdf60fbf38bd01c84b27e9388bdf3 100644 (file)
@@ -52,7 +52,8 @@ struct bt_component *bt_component_source_create(
                goto end;
        }
 
-       ret = bt_component_init(&source->parent, bt_component_source_destroy);
+       source->parent.class = bt_get(class);
+       ret = bt_component_init(&source->parent, NULL);
        if (ret != BT_COMPONENT_STATUS_OK) {
                BT_PUT(source);
                goto end;
This page took 0.024424 seconds and 4 git commands to generate.