mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
validate: Fix json serialized object leaks
This commit is contained in:
parent
02d716d6d8
commit
e27367f040
2 changed files with 4 additions and 4 deletions
|
@ -67,6 +67,7 @@ gst_validate_report_serialize (GstValidateReport * report)
|
||||||
json_object_set_string_member (jreport, "details", report->message);
|
json_object_set_string_member (jreport, "details", report->message);
|
||||||
|
|
||||||
node = json_node_init_object (node, jreport);
|
node = json_node_init_object (node, jreport);
|
||||||
|
json_object_unref (jreport);
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
@ -877,8 +878,7 @@ gst_validate_printf_valist (gpointer source, const gchar * format, va_list args)
|
||||||
|
|
||||||
GstValidateActionParameter playback_time_param = {
|
GstValidateActionParameter playback_time_param = {
|
||||||
.name = "playback-time",
|
.name = "playback-time",
|
||||||
.description =
|
.description = "The playback time at which the action will be executed",
|
||||||
"The playback time at which the action will be executed",
|
|
||||||
.mandatory = FALSE,
|
.mandatory = FALSE,
|
||||||
.types = "double,string",
|
.types = "double,string",
|
||||||
.possible_variables =
|
.possible_variables =
|
||||||
|
@ -923,8 +923,7 @@ gst_validate_printf_valist (gpointer source, const gchar * format, va_list args)
|
||||||
"\n optional : "
|
"\n optional : "
|
||||||
"Don't raise an error if this action hasn't been executed or failed"
|
"Don't raise an error if this action hasn't been executed or failed"
|
||||||
"\n%-32s Possible types:"
|
"\n%-32s Possible types:"
|
||||||
"\n%-32s boolean"
|
"\n%-32s boolean" "\n%-32s Default: false", "", "", "");
|
||||||
"\n%-32s Default: false","","","");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!has_parameters)
|
if (!has_parameters)
|
||||||
|
|
|
@ -253,6 +253,7 @@ gst_validate_action_serialize (GstValidateAction * action)
|
||||||
g_free (action_args);
|
g_free (action_args);
|
||||||
|
|
||||||
node = json_node_init_object (node, jreport);
|
node = json_node_init_object (node, jreport);
|
||||||
|
json_object_unref (jreport);
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue