mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
ges-xml-formatter: fix memory leak in error path
COVERITY CID 1212147
This commit is contained in:
parent
a1bf40b9e1
commit
9cbdfad546
1 changed files with 3 additions and 1 deletions
|
@ -394,6 +394,8 @@ _parse_layer (GMarkupParseContext * context, const gchar * element_name,
|
|||
|
||||
ges_base_xml_formatter_add_layer (GES_BASE_XML_FORMATTER (self),
|
||||
extractable_type, priority, props, metadatas, error);
|
||||
|
||||
done:
|
||||
if (props)
|
||||
gst_structure_free (props);
|
||||
|
||||
|
@ -404,7 +406,7 @@ convertion_failed:
|
|||
G_MARKUP_ERROR_INVALID_CONTENT,
|
||||
"element '%s', Wrong property type, error: %s'", element_name,
|
||||
g_strerror (errno));
|
||||
return;
|
||||
goto done;
|
||||
|
||||
wrong_properties:
|
||||
g_set_error (error, G_MARKUP_ERROR,
|
||||
|
|
Loading…
Reference in a new issue