mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	module-rtp: free the avahi client as well
This commit is contained in:
		
							parent
							
								
									f6e25c239f
								
							
						
					
					
						commit
						08642adddc
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1156,6 +1156,8 @@ static int make_socket(const struct sockaddr_storage* sa, socklen_t salen,
 | 
			
		|||
	if (setsockopt(fd, IPPROTO_IP, IP_TOS, &val, sizeof(val)) < 0)
 | 
			
		||||
		pw_log_warn("setsockopt(IP_TOS) failed: %m");
 | 
			
		||||
 | 
			
		||||
	pw_log_debug("new socket fd:%d", fd);
 | 
			
		||||
 | 
			
		||||
	return fd;
 | 
			
		||||
error:
 | 
			
		||||
	close(fd);
 | 
			
		||||
| 
						 | 
				
			
			@ -1220,6 +1222,9 @@ static void impl_destroy(struct impl *impl)
 | 
			
		|||
	if (impl->data_source)
 | 
			
		||||
		pw_loop_destroy_source(impl->data_loop, impl->data_source);
 | 
			
		||||
 | 
			
		||||
	if (impl->client)
 | 
			
		||||
		avahi_client_free(impl->client);
 | 
			
		||||
 | 
			
		||||
	pw_properties_free(impl->stream_props);
 | 
			
		||||
	pw_properties_free(impl->props);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue