From 30d879f357baf48088288fd03b04a72896f91093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 26 Oct 2014 20:32:41 +0000 Subject: [PATCH] timeline: free track elements list --- ges/ges-timeline.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ges/ges-timeline.c b/ges/ges-timeline.c index 378f728cd9..59f482d19c 100644 --- a/ges/ges-timeline.c +++ b/ges/ges-timeline.c @@ -1910,7 +1910,7 @@ static void add_object_to_tracks (GESTimeline * timeline, GESClip * clip, GESTrack * track) { gint i; - GList *tmp; + GList *tmp, *list; GESTrackType types, visited_type = GES_TRACK_TYPE_UNKNOWN; GST_DEBUG_OBJECT (timeline, "Creating %" GST_PTR_FORMAT @@ -1929,7 +1929,8 @@ add_object_to_tracks (GESTimeline * timeline, GESClip * clip, GESTrack * track) if (((track->type & types) == 0 || (track->type & visited_type))) continue; - ges_clip_create_track_elements (clip, track->type); + list = ges_clip_create_track_elements (clip, track->type); + g_list_free (list); } }