Leak fix
[babeltrace.git] / lib / plugin-system / component.c
index 483788acd6be9381f7fa3cb156d09ddd105f118f..16bc28680cd9df654669d2467c7f91bab5e90d6f 100644 (file)
@@ -84,7 +84,7 @@ enum bt_component_status bt_component_init(struct bt_component *component,
        enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
 
        if (!component || !destroy) {
-               ret = BT_COMPONENT_STATUS_INVAL;
+               ret = BT_COMPONENT_STATUS_INVALID;
                goto end;
        }
 
@@ -124,7 +124,6 @@ struct bt_component *bt_component_create(
        }
 
        bt_object_init(component, bt_component_destroy);
-       component->class = bt_get(component_class);
        component->name = g_string_new(name);
        if (!component->name) {
                BT_PUT(component);
@@ -160,7 +159,7 @@ enum bt_component_status bt_component_set_name(struct bt_component *component,
        enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
 
        if (!component || !name || name[0] == '\0') {
-               ret = BT_COMPONENT_STATUS_INVAL;
+               ret = BT_COMPONENT_STATUS_INVALID;
                goto end;
        }
 
@@ -187,7 +186,7 @@ bt_component_set_private_data(struct bt_component *component,
        enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
 
        if (!component) {
-               ret = BT_COMPONENT_STATUS_INVAL;
+               ret = BT_COMPONENT_STATUS_INVALID;
                goto end;
        }
 
This page took 0.027697 seconds and 4 git commands to generate.