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
This commit is contained in:
Vineeth TM 2015-08-07 12:51:53 +09:00 committed by Thibault Saunier
parent 82ffd9c53e
commit 14414c13c5

View 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);