mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	loopback: Fix crash on error during init
If an error during pa__init() causes a jump to fail: u->asyncmsgq is not initialized.
This commit is contained in:
		
							parent
							
								
									1c134f4517
								
							
						
					
					
						commit
						b762f4eef1
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -136,7 +136,8 @@ static void teardown(struct userdata *u) {
 | 
			
		|||
    pa_assert(u);
 | 
			
		||||
    pa_assert_ctl_context();
 | 
			
		||||
 | 
			
		||||
    pa_asyncmsgq_flush(u->asyncmsgq, 0);
 | 
			
		||||
    if (u->asyncmsgq)
 | 
			
		||||
        pa_asyncmsgq_flush(u->asyncmsgq, 0);
 | 
			
		||||
 | 
			
		||||
    u->adjust_time = 0;
 | 
			
		||||
    if (u->time_event) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue