girepository/girmodule: Cleanup the build stack once we've done

The stack is allocated with a list that we need to free once done
This commit is contained in:
Marco Trevisan (Treviño) 2024-05-10 17:37:23 +02:00 committed by Philip Withnall
parent 6f69fd53df
commit 05f606f3c5

View File

@ -540,6 +540,7 @@ gi_ir_module_build_typelib (GIIrModule *module)
build.n_attributes = header->n_attributes; build.n_attributes = header->n_attributes;
build.data = data; build.data = data;
gi_ir_node_build_typelib (node, NULL, &build, &offset, &offset2, NULL); gi_ir_node_build_typelib (node, NULL, &build, &offset, &offset2, NULL);
g_clear_list (&build.stack, NULL);
nodes_with_attributes = build.nodes_with_attributes; nodes_with_attributes = build.nodes_with_attributes;
header->n_attributes = build.n_attributes; header->n_attributes = build.n_attributes;