[pango/matthiasc/for-main] Plug a memory leak in the json parser
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/matthiasc/for-main] Plug a memory leak in the json parser
- Date: Mon, 6 Dec 2021 03:53:21 +0000 (UTC)
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]