mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	deal properly with pa_mempool_new() failing
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1282 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									8c9bdb838c
								
							
						
					
					
						commit
						046bdd9b30
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -46,7 +46,11 @@
 | 
			
		|||
 | 
			
		||||
pa_core* pa_core_new(pa_mainloop_api *m, int shared) {
 | 
			
		||||
    pa_core* c;
 | 
			
		||||
    
 | 
			
		||||
    pa_mempool *pool;
 | 
			
		||||
 | 
			
		||||
    if (!(pool = pa_mempool_new(shared)))
 | 
			
		||||
        return NULL;
 | 
			
		||||
            
 | 
			
		||||
    c = pa_xnew(pa_core, 1);
 | 
			
		||||
 | 
			
		||||
    c->mainloop = m;
 | 
			
		||||
| 
						 | 
				
			
			@ -78,7 +82,7 @@ pa_core* pa_core_new(pa_mainloop_api *m, int shared) {
 | 
			
		|||
    PA_LLIST_HEAD_INIT(pa_subscription_event, c->subscription_event_queue);
 | 
			
		||||
    c->subscription_event_last = NULL;
 | 
			
		||||
 | 
			
		||||
    c->mempool = pa_mempool_new(shared);
 | 
			
		||||
    c->mempool = pool;
 | 
			
		||||
 | 
			
		||||
    c->disallow_module_loading = 0;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue