mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pw-link: free target_link objects at the end
				
					
				
			This commit is contained in:
		
							parent
							
								
									09e0113b6a
								
							
						
					
					
						commit
						d84101d97f
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -995,9 +995,11 @@ int main(int argc, char *argv[])
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	struct target_link *tl;
 | 
			
		||||
	spa_list_for_each(tl, &data.target_links, link) {
 | 
			
		||||
	spa_list_consume(tl, &data.target_links, link) {
 | 
			
		||||
		spa_hook_remove(&tl->listener);
 | 
			
		||||
		pw_proxy_destroy(tl->proxy);
 | 
			
		||||
		spa_list_remove(&tl->link);
 | 
			
		||||
		free(tl);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (data.out_regex)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue