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




commit 7e7f336d3b5abc076b35f6ad65f17f5a0ca243e0
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..5433d535 100644
--- a/pango/json/gtkjsonparser.c
+++ b/pango/json/gtkjsonparser.c
@@ -996,6 +996,8 @@ gtk_json_parser_free (GtkJsonParser *self)
   if (self->blocks != self->blocks_preallocated)
     g_free (self->blocks);
 
+  g_clear_error (&self->error);
+
   g_slice_free (GtkJsonParser, self);
 }
 


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