mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	adapter: free slave in the module
This commit is contained in:
		
							parent
							
								
									53d3d5cb0c
								
							
						
					
					
						commit
						af1b012a70
					
				
					 3 changed files with 14 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -160,15 +160,14 @@ static const struct pw_port_implementation port_implementation = {
 | 
			
		|||
static void node_destroy(void *data)
 | 
			
		||||
{
 | 
			
		||||
	struct node *n = data;
 | 
			
		||||
	struct port *p, *tmp;
 | 
			
		||||
	struct port *p;
 | 
			
		||||
 | 
			
		||||
	spa_list_for_each_safe(p, tmp, &n->ports, link) {
 | 
			
		||||
	spa_list_consume(p, &n->ports, link) {
 | 
			
		||||
		pw_port_set_mix(p->port, NULL, 0);
 | 
			
		||||
		spa_list_remove(&p->link);
 | 
			
		||||
		spa_handle_clear(p->spa_handle);
 | 
			
		||||
		free(p);
 | 
			
		||||
	}
 | 
			
		||||
	pw_node_destroy(n->slave);
 | 
			
		||||
	pw_properties_free(n->props);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue