Commit 0219631f authored by Edward Hervey's avatar Edward Hervey 🤘 Committed by Edward Hervey
Browse files

xml-formatter: Free structure after usage

CID: 1416901
CID: 1439518
CID: 1439527
parent 9e6be472
Pipeline #80837 passed with stages
in 54 minutes and 16 seconds
......@@ -199,6 +199,9 @@ _parse_encoding_profile (GMarkupParseContext * context,
ges_base_xml_formatter_add_encoding_profile (GES_BASE_XML_FORMATTER (self),
type, NULL, name, description, capsformat, preset, preset_properties,
preset_name, 0, 0, NULL, 0, FALSE, NULL, TRUE, error);
if (preset_properties)
gst_structure_free (preset_properties);
static inline void
......@@ -612,6 +615,8 @@ _parse_clip (GMarkupParseContext * context,
track_types, props, children_props, metadatas, error);
if (props)
gst_structure_free (props);
if (children_props)
gst_structure_free (children_props);
......@@ -627,6 +632,8 @@ wrong_children_properties:
"element '%s', Clip %s children properties '%s', could no be deserialized",
element_name, asset_id, children_properties);
if (props)
gst_structure_free (props);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment