mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
validate: scenario: fix scenarios leak
This commit is contained in:
parent
38342dfe2e
commit
a99c13da4b
1 changed files with 3 additions and 1 deletions
|
@ -1870,7 +1870,7 @@ static gboolean
|
||||||
gst_validate_scenario_load (GstValidateScenario * scenario,
|
gst_validate_scenario_load (GstValidateScenario * scenario,
|
||||||
const gchar * scenario_name)
|
const gchar * scenario_name)
|
||||||
{
|
{
|
||||||
gchar **scenarios;
|
gchar **scenarios = NULL;
|
||||||
guint i;
|
guint i;
|
||||||
gchar *lfilename = NULL, *tldir = NULL;
|
gchar *lfilename = NULL, *tldir = NULL;
|
||||||
gboolean found_actions = FALSE, is_config, ret = TRUE;
|
gboolean found_actions = FALSE, is_config, ret = TRUE;
|
||||||
|
@ -1952,6 +1952,8 @@ done:
|
||||||
if (env_scenariodir)
|
if (env_scenariodir)
|
||||||
g_strfreev (env_scenariodir);
|
g_strfreev (env_scenariodir);
|
||||||
|
|
||||||
|
g_strfreev (scenarios);
|
||||||
|
|
||||||
if (ret == FALSE)
|
if (ret == FALSE)
|
||||||
g_error ("Could not set scenario %s => EXIT\n", scenario_name);
|
g_error ("Could not set scenario %s => EXIT\n", scenario_name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue