From cf492d3839cb6f1e410326221fcb8cb606323bf3 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Sat, 10 May 2014 22:45:34 +0200 Subject: [PATCH] ges-xml-formatter: fix memory leak COVERTY CID 1212148 --- ges/ges-xml-formatter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ges/ges-xml-formatter.c b/ges/ges-xml-formatter.c index df29ea6915..fd22332177 100644 --- a/ges/ges-xml-formatter.c +++ b/ges/ges-xml-formatter.c @@ -326,6 +326,9 @@ _parse_track (GMarkupParseContext * context, const gchar * element_name, ges_base_xml_formatter_add_track (GES_BASE_XML_FORMATTER (self), track_type, caps, strtrack_id, props, metadatas, error); + if (props) + gst_structure_free (props); + return; wrong_caps: