[pango/matthiasc/for-main] Plug a memory leak in the json parser



commit c1d9bb272b269a4c3262583d425cf4c727fce96a
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Dec 5 22:53:02 2021 -0500

    Plug a memory leak in the json parser

 pango/json/gtkjsonparser.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/pango/json/gtkjsonparser.c b/pango/json/gtkjsonparser.c
index e82d974d..c7427e2b 100644
--- a/pango/json/gtkjsonparser.c
+++ b/pango/json/gtkjsonparser.c
@@ -997,6 +997,8 @@ gtk_json_parser_free (GtkJsonParser *self)
     g_free (self->blocks);
 
   g_slice_free (GtkJsonParser, self);
+
+  g_clear_error (&self->error);
 }
 
 static gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]