mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	audiommixer: only clear mix_ops when initialized
It's possible that the mix_ops was not initialized and then the free pointer is NULL, so check this instead of segfaulting.
This commit is contained in:
		
							parent
							
								
									4796b3fb95
								
							
						
					
					
						commit
						0310bb5c5c
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -931,7 +931,8 @@ static int impl_clear(struct spa_handle *handle)
 | 
			
		|||
		free(port);
 | 
			
		||||
	}
 | 
			
		||||
	spa_list_init(&this->mix_list);
 | 
			
		||||
	mix_ops_free(&this->ops);
 | 
			
		||||
	if (this->ops.free)
 | 
			
		||||
		mix_ops_free(&this->ops);
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue