validate: Fix json serialized object leaks

This commit is contained in:
Thibault Saunier 2017-05-30 17:42:07 -04:00
parent 02d716d6d8
commit e27367f040
2 changed files with 4 additions and 4 deletions

View file

@ -67,6 +67,7 @@ gst_validate_report_serialize (GstValidateReport * report)
json_object_set_string_member (jreport, "details", report->message);
node = json_node_init_object (node, jreport);
json_object_unref (jreport);
return node;
}
@ -877,8 +878,7 @@ gst_validate_printf_valist (gpointer source, const gchar * format, va_list args)
GstValidateActionParameter playback_time_param = {
.name = "playback-time",
.description =
"The playback time at which the action will be executed",
.description = "The playback time at which the action will be executed",
.mandatory = FALSE,
.types = "double,string",
.possible_variables =
@ -923,8 +923,7 @@ gst_validate_printf_valist (gpointer source, const gchar * format, va_list args)
"\n optional : "
"Don't raise an error if this action hasn't been executed or failed"
"\n%-32s Possible types:"
"\n%-32s boolean"
"\n%-32s Default: false","","","");
"\n%-32s boolean" "\n%-32s Default: false", "", "", "");
}
if (!has_parameters)

View file

@ -253,6 +253,7 @@ gst_validate_action_serialize (GstValidateAction * action)
g_free (action_args);
node = json_node_init_object (node, jreport);
json_object_unref (jreport);
return node;
}