mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	link-factory: don't leak properties
This commit is contained in:
		
							parent
							
								
									28779b8e25
								
							
						
					
					
						commit
						b91a2a4207
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -119,10 +119,12 @@ static void *create_object(void *_data,
 | 
				
			||||||
	if (inport == NULL)
 | 
						if (inport == NULL)
 | 
				
			||||||
		goto no_input_port;
 | 
							goto no_input_port;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	link = pw_link_new(core, outport, inport, NULL, NULL, &error, 0);
 | 
						link = pw_link_new(core, outport, inport, NULL, properties, &error, 0);
 | 
				
			||||||
	if (link == NULL)
 | 
						if (link == NULL)
 | 
				
			||||||
		goto no_mem;
 | 
							goto no_mem;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						properties = NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_link_register(link, client, pw_client_get_global(client), NULL);
 | 
						pw_link_register(link, client, pw_client_get_global(client), NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	res = pw_global_bind(pw_link_get_global(link), client, PW_PERM_RWX, PW_VERSION_LINK, new_id);
 | 
						res = pw_global_bind(pw_link_get_global(link), client, PW_PERM_RWX, PW_VERSION_LINK, new_id);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue