validate: override-registry: fix structs list leak

The list returned by _lines_get_strutures() needs to be deeply freed.
This commit is contained in:
Guillaume Desmottes 2015-03-20 11:33:01 +01:00
parent a99c13da4b
commit 9691136887
2 changed files with 7 additions and 2 deletions

View file

@ -319,10 +319,14 @@ _load_text_override_file (const gchar * filename)
}
}
return ret;
goto done;
}
return WRONG_FILE;
ret = WRONG_FILE;
done:
g_list_free_full (structs, (GDestroyNotify) gst_structure_free);
return ret;
}
int

View file

@ -596,6 +596,7 @@ _get_lines (const gchar * scenario_file)
return lines;
}
/* Returns: (transfer full): a #GList of #GstStructure */
static GList *
_lines_get_strutures (gchar ** lines)
{