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/3428>
This commit is contained in:
Edward Hervey 2022-11-16 12:45:27 +01:00 committed by Edward Hervey
parent 137d38c991
commit 40d9858371

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;
}