mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	rtp: Freeing ioline when disconnecting
pa_ioline_close does not free the ioline structure itself, so we have to unref the structure if we want to free it. Reviewed-by: Anton Lundin <glance@acc.umu.se>
This commit is contained in:
		
							parent
							
								
									017ed3e7fa
								
							
						
					
					
						commit
						d623c689e6
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -348,8 +348,10 @@ void pa_rtsp_set_callback(pa_rtsp_client *c, pa_rtsp_cb_t callback, void *userda
 | 
			
		|||
void pa_rtsp_disconnect(pa_rtsp_client *c) {
 | 
			
		||||
    pa_assert(c);
 | 
			
		||||
 | 
			
		||||
    if (c->ioline)
 | 
			
		||||
    if (c->ioline) {
 | 
			
		||||
        pa_ioline_close(c->ioline);
 | 
			
		||||
        pa_ioline_unref(c->ioline);
 | 
			
		||||
    }
 | 
			
		||||
    c->ioline = NULL;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue