static
void destroy_pretty_data(struct pretty_component *pretty)
{
+ if (!pretty) {
+ goto end;
+ }
+
bt_self_component_port_input_message_iterator_put_ref(pretty->iterator);
if (pretty->string) {
}
g_free(pretty->options.output_path);
g_free(pretty);
+
+end:
+ return;
}
static
bt_component_class_message_iterator_next_method_status ret =
BT_COMPONENT_CLASS_MESSAGE_ITERATOR_NEXT_METHOD_STATUS_OK;
- BT_ASSERT(pretty);
+ BT_ASSERT_DBG(pretty);
switch (bt_message_get_type(message)) {
case BT_MESSAGE_TYPE_EVENT:
goto end;
}
- BT_ASSERT(next_status == BT_MESSAGE_ITERATOR_NEXT_STATUS_OK);
+ BT_ASSERT_DBG(next_status == BT_MESSAGE_ITERATOR_NEXT_STATUS_OK);
for (i = 0; i < count; i++) {
ret = (int) handle_message(pretty, msgs[i]);