mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	add pw_deinit() to cleanup resources
Add and use pw_deinit() to avoid leaking the support plugins and use this in the main daemon. Makes valgrind output better.
This commit is contained in:
		
							parent
							
								
									09913ca4ab
								
							
						
					
					
						commit
						00d61d958e
					
				
					 3 changed files with 27 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -132,6 +132,7 @@ int main(int argc, char *argv[])
 | 
			
		|||
	pw_daemon_config_free(config);
 | 
			
		||||
	pw_context_destroy(context);
 | 
			
		||||
	pw_main_loop_destroy(loop);
 | 
			
		||||
	pw_deinit();
 | 
			
		||||
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue