mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	render/allocator: ignore NULL in wlr_allocator_destroy
This commit is contained in:
		
							parent
							
								
									0dcdb5e7a1
								
							
						
					
					
						commit
						bdf26f87d5
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -10,6 +10,9 @@ void wlr_allocator_init(struct wlr_allocator *alloc,
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void wlr_allocator_destroy(struct wlr_allocator *alloc) {
 | 
			
		||||
	if (alloc == NULL) {
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
	wl_signal_emit(&alloc->events.destroy, NULL);
 | 
			
		||||
	alloc->impl->destroy(alloc);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue