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:
Marco Trevisan (Treviño) 2024-05-10 17:53:19 +02:00 committed by Philip Withnall
parent a359333dd0
commit 98dce8a1c6

View File

@ -1353,8 +1353,6 @@ start_parameter (GMarkupParseContext *context,
param->closure = closure ? atoi (closure) : -1;
param->destroy = destroy ? atoi (destroy) : -1;
((GIIrNode *)param)->name = g_strdup (name);
switch (CURRENT_NODE (ctx)->type)
{
case GI_IR_NODE_FUNCTION: