mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-23 22:16:16 +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);
|
||||
|
||||
gi_ir_node_free ((GIIrNode *)union_->discriminator_type);
|
||||
for (l = union_->members; l; l = l->next)
|
||||
gi_ir_node_free ((GIIrNode *)l->data);
|
||||
for (l = union_->discriminators; l; l = l->next)
|
||||
gi_ir_node_free ((GIIrNode *)l->data);
|
||||
g_clear_list (&union_->members, (GDestroyNotify) gi_ir_node_free);
|
||||
g_clear_list (&union_->discriminators, (GDestroyNotify) gi_ir_node_free);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user