mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	thread-mainloop: Release once_unlocked_data object after callback
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/642>
This commit is contained in:
		
							parent
							
								
									17a573782a
								
							
						
					
					
						commit
						b81b995809
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -278,6 +278,8 @@ static void once_unlocked_cb(pa_mainloop_api *api, void *userdata) {
 | 
			
		|||
 | 
			
		||||
    pa_mutex_lock(data->mainloop->mutex);
 | 
			
		||||
    pa_atomic_store(&data->mainloop->in_once_unlocked, 0);
 | 
			
		||||
 | 
			
		||||
    pa_xfree(data);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void pa_threaded_mainloop_once_unlocked(pa_threaded_mainloop *m, void (*callback)(pa_threaded_mainloop *m, void *userdata),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue