mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Fix double free on wlr_outputs
This commit is contained in:
		
							parent
							
								
									94e6e6334b
								
							
						
					
					
						commit
						0de5eed048
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
					@ -124,8 +124,8 @@ void wlr_output_transform(struct wlr_output *output,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool wlr_output_set_cursor(struct wlr_output *output,
 | 
					bool wlr_output_set_cursor(struct wlr_output *output,
 | 
				
			||||||
		const uint8_t *buf, int32_t stride, uint32_t width, uint32_t height) {
 | 
							const uint8_t *buf, int32_t stride, uint32_t width, uint32_t height) {
 | 
				
			||||||
	if (output->impl->set_cursor && output->impl->set_cursor(output, buf,
 | 
						if (output->impl->set_cursor
 | 
				
			||||||
			stride, width, height)) {
 | 
								&& output->impl->set_cursor(output, buf, stride, width, height)) {
 | 
				
			||||||
		output->cursor.is_sw = false;
 | 
							output->cursor.is_sw = false;
 | 
				
			||||||
		return true;
 | 
							return true;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					@ -179,7 +179,6 @@ void wlr_output_destroy(struct wlr_output *output) {
 | 
				
			||||||
		free(mode);
 | 
							free(mode);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	list_free(output->modes);
 | 
						list_free(output->modes);
 | 
				
			||||||
	free(output);
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void wlr_output_effective_resolution(struct wlr_output *output,
 | 
					void wlr_output_effective_resolution(struct wlr_output *output,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue