mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
GESTimelineLayer: Release all layer/tracks when being disposed
This commit is contained in:
parent
f0fc253aa8
commit
b6277bd8bb
1 changed files with 6 additions and 4 deletions
|
@ -85,11 +85,13 @@ ges_timeline_layer_dispose (GObject * object)
|
||||||
{
|
{
|
||||||
GESTimelineLayer *layer = GES_TIMELINE_LAYER (object);
|
GESTimelineLayer *layer = GES_TIMELINE_LAYER (object);
|
||||||
|
|
||||||
if (layer->objects_start) {
|
GST_DEBUG ("Disposing layer");
|
||||||
g_slist_foreach (layer->objects_start, (GFunc) g_object_unref, NULL);
|
|
||||||
g_slist_free (layer->objects_start);
|
while (layer->objects_start) {
|
||||||
layer->objects_start = NULL;
|
GESTimelineObject *obj = (GESTimelineObject *) layer->objects_start->data;
|
||||||
|
ges_timeline_layer_remove_object (layer, obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
G_OBJECT_CLASS (ges_timeline_layer_parent_class)->dispose (object);
|
G_OBJECT_CLASS (ges_timeline_layer_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue