validate: Fix double freeing of GstStructure

gst_validate_get_config is transfer-container only

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/255>
This commit is contained in:
Thibault Saunier 2021-09-10 17:11:29 -03:00 committed by GStreamer Marge Bot
parent 1e1e9f2197
commit e3636642b7

View file

@ -395,7 +395,7 @@ gst_validate_override_registry_preload (void)
for (tmp = overrides; tmp; tmp = tmp->next)
_add_override_from_struct (tmp->data);
g_list_free_full (overrides, (GDestroyNotify) gst_structure_free);
g_list_free (overrides);
sos = g_getenv ("GST_VALIDATE_OVERRIDE");
if (!sos) {