projects
/
platform
/
upstream
/
gst-editing-services.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9184c7e
)
ges-xml-formatter: fix memory leak in error path
author
Tim-Philipp Müller
<tim@centricular.com>
Fri, 9 May 2014 12:00:32 +0000
(13:00 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Fri, 9 May 2014 12:00:32 +0000
(13:00 +0100)
CID 1212146
ges/ges-xml-formatter.c
patch
|
blob
|
history
diff --git
a/ges/ges-xml-formatter.c
b/ges/ges-xml-formatter.c
index
b2ffcc6
..
367a8e4
100644
(file)
--- 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,