From 50393a809df8ade77aba914e3458ba819c25f609 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 15 Jun 2023 17:38:09 -0400 Subject: [PATCH] gessrc: Remove timeline from self when disposing Part-of: --- subprojects/gst-editing-services/plugins/ges/gesbasebin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-editing-services/plugins/ges/gesbasebin.c b/subprojects/gst-editing-services/plugins/ges/gesbasebin.c index 5e1c6ca519..6d7912cff5 100644 --- a/subprojects/gst-editing-services/plugins/ges/gesbasebin.c +++ b/subprojects/gst-editing-services/plugins/ges/gesbasebin.c @@ -61,8 +61,10 @@ ges_base_bin_dispose (GObject * object) GESBaseBin *self = GES_BASE_BIN (object); GESBaseBinPrivate *priv = ges_base_bin_get_instance_private (self); - if (priv->timeline) + if (priv->timeline) { + gst_bin_remove (GST_BIN (self), GST_ELEMENT (priv->timeline)); gst_clear_object (&priv->timeline); + } } static void