From 05f606f3c5227f73a7fe83c28b97d44408219671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 10 May 2024 17:37:23 +0200 Subject: [PATCH] girepository/girmodule: Cleanup the build stack once we've done The stack is allocated with a list that we need to free once done --- girepository/girmodule.c | 1 + 1 file changed, 1 insertion(+) diff --git a/girepository/girmodule.c b/girepository/girmodule.c index af416c3a2..f3f259397 100644 --- a/girepository/girmodule.c +++ b/girepository/girmodule.c @@ -540,6 +540,7 @@ gi_ir_module_build_typelib (GIIrModule *module) build.n_attributes = header->n_attributes; build.data = data; gi_ir_node_build_typelib (node, NULL, &build, &offset, &offset2, NULL); + g_clear_list (&build.stack, NULL); nodes_with_attributes = build.nodes_with_attributes; header->n_attributes = build.n_attributes;