mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +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/3428>
This commit is contained in:
parent
137d38c991
commit
40d9858371
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