From: Edward Hervey Date: Wed, 16 Nov 2022 11:45:27 +0000 (+0100) Subject: ges-structure-parser: Don't leak failed strings X-Git-Tag: 1.22.0~341 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40d9858371251ba954c82d3f047966e3146ed1ea;p=platform%2Fupstream%2Fgstreamer.git 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: --- diff --git a/subprojects/gst-editing-services/ges/ges-structure-parser.c b/subprojects/gst-editing-services/ges/ges-structure-parser.c index d84d64b..dcc564b 100644 --- a/subprojects/gst-editing-services/ges/ges-structure-parser.c +++ b/subprojects/gst-editing-services/ges/ges-structure-parser.c @@ -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; }