validate: scenario: fix scenarios leak

This commit is contained in:
Guillaume Desmottes 2015-03-20 11:27:29 +01:00
parent 38342dfe2e
commit a99c13da4b

View file

@ -1870,7 +1870,7 @@ static gboolean
gst_validate_scenario_load (GstValidateScenario * scenario,
const gchar * scenario_name)
{
gchar **scenarios;
gchar **scenarios = NULL;
guint i;
gchar *lfilename = NULL, *tldir = NULL;
gboolean found_actions = FALSE, is_config, ret = TRUE;
@ -1952,6 +1952,8 @@ done:
if (env_scenariodir)
g_strfreev (env_scenariodir);
g_strfreev (scenarios);
if (ret == FALSE)
g_error ("Could not set scenario %s => EXIT\n", scenario_name);