girepository/girmodule: Free the version, shared library and c prefix

Those strings are explicitly duplicated but never free'd
This commit is contained in:
Marco Trevisan (Treviño) 2024-05-10 17:27:28 +02:00 committed by Philip Withnall
parent 47cf6387ad
commit 1b8ef05321

View File

@ -75,6 +75,9 @@ gi_ir_module_free (GIIrModule *module)
GList *e;
g_free (module->name);
g_free (module->version);
g_free (module->shared_library);
g_free (module->c_prefix);
for (e = module->entries; e; e = e->next)
gi_ir_node_free ((GIIrNode *)e->data);