validate: scenario: fix leak during error cases
authorVineeth TM <vineeth.tm@samsung.com>
Fri, 7 Aug 2015 03:51:53 +0000 (12:51 +0900)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 7 Aug 2015 08:18:56 +0000 (10:18 +0200)
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

index 9bae304..a6d9a59 100644 (file)
@@ -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);