mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	audioadapter: clear convert handle to avoid leaks
This commit is contained in:
		
							parent
							
								
									7d88c37e5b
								
							
						
					
					
						commit
						c4b87aa5e2
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -958,6 +958,8 @@ static int impl_clear(struct spa_handle *handle)
 | 
				
			||||||
	spa_hook_remove(&this->follower_listener);
 | 
						spa_hook_remove(&this->follower_listener);
 | 
				
			||||||
	spa_node_set_callbacks(this->follower, NULL, NULL);
 | 
						spa_node_set_callbacks(this->follower, NULL, NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						spa_handle_clear(this->hnd_convert);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (this->buffers)
 | 
						if (this->buffers)
 | 
				
			||||||
		free(this->buffers);
 | 
							free(this->buffers);
 | 
				
			||||||
	this->buffers = NULL;
 | 
						this->buffers = NULL;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue