mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +01:00
girepository/girparser: Do not allocate the same node name twice
We were setting the node name two times, and the latter was overwriting the first one, making impossible to free the value when destroying the node
This commit is contained in:
parent
a359333dd0
commit
98dce8a1c6
@ -1353,8 +1353,6 @@ start_parameter (GMarkupParseContext *context,
|
|||||||
param->closure = closure ? atoi (closure) : -1;
|
param->closure = closure ? atoi (closure) : -1;
|
||||||
param->destroy = destroy ? atoi (destroy) : -1;
|
param->destroy = destroy ? atoi (destroy) : -1;
|
||||||
|
|
||||||
((GIIrNode *)param)->name = g_strdup (name);
|
|
||||||
|
|
||||||
switch (CURRENT_NODE (ctx)->type)
|
switch (CURRENT_NODE (ctx)->type)
|
||||||
{
|
{
|
||||||
case GI_IR_NODE_FUNCTION:
|
case GI_IR_NODE_FUNCTION:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user