mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-27 14:32:16 +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:
		
				
					committed by
					
						 Philip Withnall
						Philip Withnall
					
				
			
			
				
	
			
			
			
						parent
						
							a359333dd0
						
					
				
				
					commit
					98dce8a1c6
				
			| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user