mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	remote: destroy mempool after proxies
Some proxies might want to free the memory from the pool.
This commit is contained in:
		
							parent
							
								
									8f1b840979
								
							
						
					
					
						commit
						d8c86d977a
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -367,8 +367,6 @@ static void core_proxy_destroy(void *data)
 | 
			
		|||
		spa_hook_remove(&impl->core_proxy_listener);
 | 
			
		||||
		spa_hook_remove(&impl->core_listener);
 | 
			
		||||
		remote->core_proxy = NULL;
 | 
			
		||||
		pw_mempool_destroy(remote->pool);
 | 
			
		||||
		remote->pool = NULL;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -521,9 +519,10 @@ int pw_remote_disconnect(struct pw_remote *remote)
 | 
			
		|||
	pw_remote_update_state(remote, PW_REMOTE_STATE_UNCONNECTED, NULL);
 | 
			
		||||
 | 
			
		||||
	pw_map_for_each(&remote->objects, destroy_proxy, remote);
 | 
			
		||||
 | 
			
		||||
	pw_map_reset(&remote->objects);
 | 
			
		||||
 | 
			
		||||
	pw_mempool_destroy(remote->pool);
 | 
			
		||||
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue