X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=plugins%2Ftext%2Fpretty%2Fpretty.c;h=846cbdae7265cbe33f8d4815d42e7bed9f129f6e;hp=ae064c5e0b5a92360921c010a7582d6bed862784;hb=c5b9b4417bedfbec9b5dd23b8395ccdd4eeffc44;hpb=e2f7325d1e58710ee928373592adcee466f93d06 diff --git a/plugins/text/pretty/pretty.c b/plugins/text/pretty/pretty.c index ae064c5e..846cbdae 100644 --- a/plugins/text/pretty/pretty.c +++ b/plugins/text/pretty/pretty.c @@ -65,7 +65,7 @@ const char *plugin_options[] = { static void destroy_pretty_data(struct pretty_component *pretty) { - bt_object_put_ref(pretty->iterator); + bt_self_component_port_input_notification_iterator_put_ref(pretty->iterator); if (pretty->string) { (void) g_string_free(pretty->string, TRUE); @@ -200,7 +200,8 @@ enum bt_self_component_status pretty_consume( goto end; case BT_NOTIFICATION_ITERATOR_STATUS_END: ret = BT_SELF_COMPONENT_STATUS_END; - BT_OBJECT_PUT_REF_AND_RESET(pretty->iterator); + BT_SELF_COMPONENT_PORT_INPUT_NOTIFICATION_ITERATOR_PUT_REF_AND_RESET( + pretty->iterator); goto end; default: ret = BT_SELF_COMPONENT_STATUS_ERROR; @@ -215,12 +216,12 @@ enum bt_self_component_status pretty_consume( goto end; } - bt_object_put_ref(notifs[i]); + bt_notification_put_ref(notifs[i]); } end: for (; i < count; i++) { - bt_object_put_ref(notifs[i]); + bt_notification_put_ref(notifs[i]); } return ret; @@ -592,7 +593,7 @@ int apply_params(struct pretty_component *pretty, const struct bt_value *params) } end: - bt_object_put_ref(pretty->plugin_opt_map); + bt_value_put_ref(pretty->plugin_opt_map); pretty->plugin_opt_map = NULL; g_free(str); return ret;