Change-Id: I9e57187adcaba990c1f48885cc6e8e94f96c0ac3
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8450
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12364
Tested-by: jenkins <jenkins@lttng.org>
}
}
-static void lttng_live_component_destroy_data(struct lttng_live_component *lttng_live)
-{
- delete lttng_live;
-}
-
void lttng_live_component_finalize(bt_self_component_source *component)
{
lttng_live_component *data = (lttng_live_component *) bt_self_component_get_data(
bt_self_component_source_as_self_component(component));
- if (!data) {
- return;
- }
- lttng_live_component_destroy_data(data);
+ delete data;
}
static enum session_not_found_action
goto end;
error:
- lttng_live_component_destroy_data(lttng_live);
+ delete lttng_live;
lttng_live = NULL;
end:
g_free(validation_error);
goto end;
error:
- lttng_live_component_destroy_data(lttng_live);
+ delete lttng_live;
lttng_live = NULL;
end:
return ret;