From 29bac48934b16c51773e9c5075d46ad44fc2cbd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 26 Oct 2014 20:34:29 +0000 Subject: [PATCH] timeline: fix mutex and all_elements hash table leaks --- ges/ges-timeline.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ges/ges-timeline.c b/ges/ges-timeline.c index 59b843ff3e..187cffd5cc 100644 --- a/ges/ges-timeline.c +++ b/ges/ges-timeline.c @@ -351,12 +351,18 @@ ges_timeline_dispose (GObject * object) g_hash_table_unref (priv->auto_transitions); + g_hash_table_unref (priv->all_elements); + G_OBJECT_CLASS (ges_timeline_parent_class)->dispose (object); } static void ges_timeline_finalize (GObject * object) { + GESTimeline *tl = GES_TIMELINE (object); + + g_rec_mutex_clear (&tl->priv->dyn_mutex); + G_OBJECT_CLASS (ges_timeline_parent_class)->finalize (object); } @@ -566,6 +572,8 @@ ges_timeline_init (GESTimeline * self) g_signal_connect_after (self, "select-tracks-for-object", G_CALLBACK (select_tracks_for_object_default), NULL); + + g_rec_mutex_init (&priv->dyn_mutex); } /* Private methods */