mpdparser: Fix leak

The error: location takes care of freeing new_representation

CID #1405027
This commit is contained in:
Edward Hervey 2017-04-12 10:54:23 +02:00 committed by Edward Hervey
parent 92ce999ca6
commit 94fe5c690e

View file

@ -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);