mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
xml-formatter: Plug some leaks
This commit is contained in:
parent
d04bffc541
commit
33cf9ec180
1 changed files with 4 additions and 2 deletions
|
@ -928,6 +928,8 @@ _serialize_properties (GObject * object, const gchar * fieldname, ...)
|
||||||
g_object_get (object, spec->name, &caps, NULL);
|
g_object_get (object, spec->name, &caps, NULL);
|
||||||
caps_str = gst_caps_to_string (caps);
|
caps_str = gst_caps_to_string (caps);
|
||||||
gst_structure_set (structure, spec->name, G_TYPE_STRING, caps_str, NULL);
|
gst_structure_set (structure, spec->name, G_TYPE_STRING, caps_str, NULL);
|
||||||
|
if (caps)
|
||||||
|
gst_caps_unref (caps);
|
||||||
g_free (caps_str);
|
g_free (caps_str);
|
||||||
} else if (_can_serialize_spec (spec)) {
|
} else if (_can_serialize_spec (spec)) {
|
||||||
_init_value_from_spec_for_serialization (&val, spec);
|
_init_value_from_spec_for_serialization (&val, spec);
|
||||||
|
@ -1228,6 +1230,7 @@ _save_layers (GESXmlFormatter * self, GString * str, GESTimeline * timeline)
|
||||||
g_type_name (G_OBJECT_TYPE (clip)), priority,
|
g_type_name (G_OBJECT_TYPE (clip)), priority,
|
||||||
ges_clip_get_supported_formats (clip), _START (clip),
|
ges_clip_get_supported_formats (clip), _START (clip),
|
||||||
_DURATION (clip), _INPOINT (clip), 0, properties, metas));
|
_DURATION (clip), _INPOINT (clip), 0, properties, metas));
|
||||||
|
g_free (metas);
|
||||||
|
|
||||||
if (GES_IS_TRANSITION_CLIP (clip)) {
|
if (GES_IS_TRANSITION_CLIP (clip)) {
|
||||||
_save_children_properties (str, GES_TIMELINE_ELEMENT (clip));
|
_save_children_properties (str, GES_TIMELINE_ELEMENT (clip));
|
||||||
|
@ -1250,8 +1253,7 @@ _save_layers (GESXmlFormatter * self, GString * str, GESTimeline * timeline)
|
||||||
_save_effect (str, priv->nbelements,
|
_save_effect (str, priv->nbelements,
|
||||||
GES_TRACK_ELEMENT (tmpeffect->data), timeline);
|
GES_TRACK_ELEMENT (tmpeffect->data), timeline);
|
||||||
}
|
}
|
||||||
|
g_list_free (effects);
|
||||||
|
|
||||||
tracks = ges_timeline_get_tracks (timeline);
|
tracks = ges_timeline_get_tracks (timeline);
|
||||||
|
|
||||||
for (tmptrackelement = GES_CONTAINER_CHILDREN (clip); tmptrackelement;
|
for (tmptrackelement = GES_CONTAINER_CHILDREN (clip); tmptrackelement;
|
||||||
|
|
Loading…
Reference in a new issue