From b59c3f73eed238ffe7f21e440f86845311fc7e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 10 May 2024 18:10:48 +0200 Subject: [PATCH] girepository/girparser: Free the parsed modules list elements We were removing the modules themselves, but not the list items --- girepository/girparser.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/girepository/girparser.c b/girepository/girparser.c index de60eef1f..9cb25e482 100644 --- a/girepository/girparser.c +++ b/girepository/girparser.c @@ -212,13 +212,10 @@ gi_ir_parser_set_debug (GIIrParser *parser, void gi_ir_parser_free (GIIrParser *parser) { - GList *l; - g_strfreev (parser->includes); g_strfreev (parser->gi_gir_path); - for (l = parser->parsed_modules; l; l = l->next) - gi_ir_module_free (l->data); + g_clear_list (&parser->parsed_modules, (GDestroyNotify) gi_ir_module_free); g_slice_free (GIIrParser, parser); }