mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
mpdparser: Fix leak
The error: location takes care of freeing new_representation CID #1405027
This commit is contained in:
parent
92ce999ca6
commit
94fe5c690e
1 changed files with 2 additions and 2 deletions
|
@ -1873,12 +1873,12 @@ gst_mpdparser_parse_representation_node (GList ** list, xmlNode * a_node,
|
|||
if (!gst_mpdparser_get_xml_prop_string_no_whitespace (a_node, "id",
|
||||
&new_representation->id)) {
|
||||
GST_ERROR ("Cannot parse Representation id, invalid manifest");
|
||||
return FALSE;
|
||||
goto error;
|
||||
}
|
||||
if (!gst_mpdparser_get_xml_prop_unsigned_integer (a_node, "bandwidth", 0,
|
||||
&new_representation->bandwidth)) {
|
||||
GST_ERROR ("Cannot parse Representation bandwidth, invalid manifest");
|
||||
return FALSE;
|
||||
goto error;
|
||||
}
|
||||
gst_mpdparser_get_xml_prop_unsigned_integer (a_node, "qualityRanking", 0,
|
||||
&new_representation->qualityRanking);
|
||||
|
|
Loading…
Reference in a new issue