mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
validate: override-registry: fix structs list leak
The list returned by _lines_get_strutures() needs to be deeply freed.
This commit is contained in:
parent
a99c13da4b
commit
9691136887
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue