mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	stream: free formats and transport in destroy()
This commit is contained in:
		
							parent
							
								
									dda5a22fcd
								
							
						
					
					
						commit
						dac9755765
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -259,6 +259,7 @@ void
 | 
			
		|||
pinos_stream_destroy (PinosStream *stream)
 | 
			
		||||
{
 | 
			
		||||
  PinosStreamImpl *impl = SPA_CONTAINER_OF (stream, PinosStreamImpl, this);
 | 
			
		||||
  int i;
 | 
			
		||||
 | 
			
		||||
  pinos_log_debug ("stream %p: destroy", stream);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -271,6 +272,13 @@ pinos_stream_destroy (PinosStream *stream)
 | 
			
		|||
  if (impl->node_proxy)
 | 
			
		||||
    pinos_signal_remove (&impl->node_proxy_destroy);
 | 
			
		||||
 | 
			
		||||
  if (impl->possible_formats) {
 | 
			
		||||
    for (i = 0; i < impl->n_possible_formats; i++) {
 | 
			
		||||
      free (impl->possible_formats[i]);
 | 
			
		||||
    }
 | 
			
		||||
    free (impl->possible_formats);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (impl->format)
 | 
			
		||||
    free (impl->format);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -286,6 +294,9 @@ pinos_stream_destroy (PinosStream *stream)
 | 
			
		|||
  if (stream->properties)
 | 
			
		||||
    pinos_properties_free (stream->properties);
 | 
			
		||||
 | 
			
		||||
  if (impl->trans)
 | 
			
		||||
    pinos_transport_destroy (impl->trans);
 | 
			
		||||
 | 
			
		||||
  if (stream->name)
 | 
			
		||||
    free (stream->name);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue