From 0219631f5ad62ae73a48571e3dbb3fc78953b5e5 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 20 Nov 2019 07:52:56 +0100 Subject: [PATCH] xml-formatter: Free structure after usage CID: 1416901 CID: 1439518 CID: 1439527 --- ges/ges-xml-formatter.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ges/ges-xml-formatter.c b/ges/ges-xml-formatter.c index e585ae6a6a..c591a065d0 100644 --- a/ges/ges-xml-formatter.c +++ b/ges/ges-xml-formatter.c @@ -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); return; @@ -627,6 +632,8 @@ wrong_children_properties: G_MARKUP_ERROR_INVALID_CONTENT, "element '%s', Clip %s children properties '%s', could no be deserialized", element_name, asset_id, children_properties); + if (props) + gst_structure_free (props); return; convertion_failed: