ges-structure-parser: Don't leak failed strings

We pass the ownership of current_string to the list of wrong strings, it will be
cleared then.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3597>
This commit is contained in:
Edward Hervey 2022-11-16 12:45:27 +01:00 committed by GStreamer Marge Bot
parent d5898c0435
commit 4704df2c26

View file

@ -110,8 +110,8 @@ _finish_structure (GESStructureParser * self)
GST_ERROR ("Could not parse %s", self->current_string);
self->wrong_strings = g_list_append (self->wrong_strings,
g_strdup (self->current_string));
self->current_string);
self->current_string = NULL;
return;
}