From 14414c13c5cc75525e3e7bb118dfbd588d0b9acc Mon Sep 17 00:00:00 2001 From: Vineeth TM Date: Fri, 7 Aug 2015 12:51:53 +0900 Subject: [PATCH] validate: scenario: fix leak during error cases When message_async is not called during error cases, needs_parsing GList is not being freed resulting in leak. Hence free'ing the same in finalize. https://bugzilla.gnome.org/show_bug.cgi?id=753339 --- validate/gst/validate/gst-validate-scenario.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c index 9bae304b2d..a6d9a59cbc 100644 --- a/validate/gst/validate/gst-validate-scenario.c +++ b/validate/gst/validate/gst-validate-scenario.c @@ -2530,6 +2530,8 @@ gst_validate_scenario_finalize (GObject * object) (GDestroyNotify) gst_mini_object_unref); g_list_free_full (priv->on_addition_actions, (GDestroyNotify) gst_mini_object_unref); + g_list_free_full (priv->needs_parsing, + (GDestroyNotify) gst_mini_object_unref); g_free (priv->pipeline_name); g_mutex_clear (&priv->lock);