track: Do not remove a TrackElement from a NULL clip

This commit is contained in:
Thibault Saunier 2013-03-01 22:26:01 -03:00
parent c73ced52f8
commit ae80f08869

View file

@ -384,6 +384,7 @@ dispose_trackelements_foreach (GESTrackElement * trackelement, GESTrack * track)
clip = GES_CLIP (GES_TIMELINE_ELEMENT_PARENT (trackelement));
if (clip)
ges_container_remove (GES_CONTAINER (clip),
GES_TIMELINE_ELEMENT (trackelement));
remove_object_internal (track, trackelement);