mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 09:00:54 +00:00
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:
parent
d5898c0435
commit
4704df2c26
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue