From 6d68f55c63653491ee3d913cce1a82c0e761dc96 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 9 May 2014 13:00:32 +0100 Subject: [PATCH] ges-xml-formatter: fix memory leak in error path CID 1212146 --- ges/ges-xml-formatter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ges/ges-xml-formatter.c b/ges/ges-xml-formatter.c index b2ffcc676b..367a8e4447 100644 --- a/ges/ges-xml-formatter.c +++ b/ges/ges-xml-formatter.c @@ -598,6 +598,8 @@ _parse_effect (GMarkupParseContext * context, const gchar * element_name, type, asset_id, track_id, clip_id, children_props, props, metadatas, error); +out: + if (props) gst_structure_free (props); if (children_props) @@ -617,7 +619,7 @@ wrong_children_properties: G_MARKUP_ERROR_INVALID_CONTENT, "element '%s', Effect %s children properties '%s', could no be deserialized", element_name, asset_id, children_properties); - return; + goto out; wrong_type: g_set_error (error, G_MARKUP_ERROR, -- 2.34.1