mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 05:13:06 +02:00
girnode: Fix a couple of leaks from GIIrNode subclasses
Found by code inspection rather than hitting them at runtime. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
2c2712e310
commit
e301782865
@ -240,7 +240,7 @@ gi_ir_node_free (GIIrNode *node)
|
||||
|
||||
g_free (type->giinterface);
|
||||
g_strfreev (type->errors);
|
||||
|
||||
g_free (type->unparsed);
|
||||
}
|
||||
break;
|
||||
|
||||
@ -320,6 +320,8 @@ gi_ir_node_free (GIIrNode *node)
|
||||
g_free ((GIIrNode *)l->data);
|
||||
g_list_free (iface->interfaces);
|
||||
|
||||
g_list_free_full (iface->prerequisites, g_free);
|
||||
|
||||
for (l = iface->members; l; l = l->next)
|
||||
gi_ir_node_free ((GIIrNode *)l->data);
|
||||
g_list_free (iface->members);
|
||||
|
Loading…
x
Reference in New Issue
Block a user