mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: free object info
Don't remove the listeners before destroying the proxy because we clean up the info in the destroy event.
This commit is contained in:
		
							parent
							
								
									99fcc95d18
								
							
						
					
					
						commit
						cd3610367b
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -127,12 +127,8 @@ static void object_destroy(struct object *o)
 | 
			
		|||
	struct manager *m = o->manager;
 | 
			
		||||
	spa_list_remove(&o->this.link);
 | 
			
		||||
	m->this.n_objects--;
 | 
			
		||||
	if (o->this.proxy) {
 | 
			
		||||
		if (o->info->events)
 | 
			
		||||
			spa_hook_remove(&o->object_listener);
 | 
			
		||||
		spa_hook_remove(&o->proxy_listener);
 | 
			
		||||
	if (o->this.proxy)
 | 
			
		||||
		pw_proxy_destroy(o->this.proxy);
 | 
			
		||||
	}
 | 
			
		||||
	if (o->this.props)
 | 
			
		||||
		pw_properties_free(o->this.props);
 | 
			
		||||
	clear_params(&o->this.param_list, SPA_ID_INVALID);
 | 
			
		||||
| 
						 | 
				
			
			@ -421,6 +417,10 @@ destroy_proxy(void *data)
 | 
			
		|||
{
 | 
			
		||||
	struct object *o = data;
 | 
			
		||||
 | 
			
		||||
	if (o->info->events)
 | 
			
		||||
		spa_hook_remove(&o->object_listener);
 | 
			
		||||
	spa_hook_remove(&o->proxy_listener);
 | 
			
		||||
 | 
			
		||||
	if (o->info && o->info->destroy)
 | 
			
		||||
                o->info->destroy(o);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue