mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	remove hooks from objects
Remove the hooks we installed on objects in the destroy/free event or before calling _destroy. This is not really needed but it is a nice thing to do because it calls the hook removed callbacks.
This commit is contained in:
		
							parent
							
								
									6317bc4deb
								
							
						
					
					
						commit
						1570e62635
					
				
					 19 changed files with 109 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -91,6 +91,7 @@ static void node_destroy(void *data)
 | 
			
		|||
	struct node_data *nd = data;
 | 
			
		||||
	pw_log_debug(NAME" %p: destroy %p", nd, nd->adapter);
 | 
			
		||||
	spa_list_remove(&nd->link);
 | 
			
		||||
	spa_hook_remove(&nd->adapter_listener);
 | 
			
		||||
	nd->adapter = NULL;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue