From 40d9858371251ba954c82d3f047966e3146ed1ea Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 16 Nov 2022 12:45:27 +0100 Subject: [PATCH] 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: --- subprojects/gst-editing-services/ges/ges-structure-parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.7.4