mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	render/pixman/renderer.c: Fix memory-leak in create_buffer
Found via scan-build
This commit is contained in:
		
							parent
							
								
									ebe3cfaceb
								
							
						
					
					
						commit
						4fb652c27f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -108,7 +108,7 @@ static struct wlr_pixman_buffer *create_buffer(
 | 
			
		|||
	if (format == 0) {
 | 
			
		||||
		wlr_log(WLR_ERROR, "Unsupported pixman drm format 0x%"PRIX32,
 | 
			
		||||
				drm_format);
 | 
			
		||||
		return NULL;
 | 
			
		||||
		goto error_buffer;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	buffer->image = pixman_image_create_bits(format, wlr_buffer->width,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue