mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
girepository/girnode: Fully free the members and discriminators lists
We were removing the contents but not the lists themselves
This commit is contained in:
parent
4cdf53a15c
commit
a359333dd0
@ -415,10 +415,8 @@ gi_ir_node_free (GIIrNode *node)
|
|||||||
g_free (union_->free_func);
|
g_free (union_->free_func);
|
||||||
|
|
||||||
gi_ir_node_free ((GIIrNode *)union_->discriminator_type);
|
gi_ir_node_free ((GIIrNode *)union_->discriminator_type);
|
||||||
for (l = union_->members; l; l = l->next)
|
g_clear_list (&union_->members, (GDestroyNotify) gi_ir_node_free);
|
||||||
gi_ir_node_free ((GIIrNode *)l->data);
|
g_clear_list (&union_->discriminators, (GDestroyNotify) gi_ir_node_free);
|
||||||
for (l = union_->discriminators; l; l = l->next)
|
|
||||||
gi_ir_node_free ((GIIrNode *)l->data);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user