mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend: destroy renderer when destroying backend
This commit is contained in:
		
							parent
							
								
									097561d6bf
								
							
						
					
					
						commit
						cd9f25711c
					
				
					 3 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -54,6 +54,7 @@ static void backend_destroy(struct wlr_backend *wlr_backend) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wlr_signal_emit_safe(&wlr_backend->events.destroy, backend);
 | 
						wlr_signal_emit_safe(&wlr_backend->events.destroy, backend);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						wlr_renderer_destroy(backend->renderer);
 | 
				
			||||||
	wlr_egl_finish(&backend->egl);
 | 
						wlr_egl_finish(&backend->egl);
 | 
				
			||||||
	free(backend);
 | 
						free(backend);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -88,6 +88,7 @@ static void wlr_wl_backend_destroy(struct wlr_backend *wlr_backend) {
 | 
				
			||||||
	free(backend->seat_name);
 | 
						free(backend->seat_name);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wl_event_source_remove(backend->remote_display_src);
 | 
						wl_event_source_remove(backend->remote_display_src);
 | 
				
			||||||
 | 
						wlr_renderer_destroy(backend->renderer);
 | 
				
			||||||
	wlr_egl_finish(&backend->egl);
 | 
						wlr_egl_finish(&backend->egl);
 | 
				
			||||||
	if (backend->seat) {
 | 
						if (backend->seat) {
 | 
				
			||||||
		wl_seat_destroy(backend->seat);
 | 
							wl_seat_destroy(backend->seat);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -239,6 +239,7 @@ static void wlr_x11_backend_destroy(struct wlr_backend *backend) {
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	wl_list_remove(&x11->display_destroy.link);
 | 
						wl_list_remove(&x11->display_destroy.link);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						wlr_renderer_destroy(x11->renderer);
 | 
				
			||||||
	wlr_egl_finish(&x11->egl);
 | 
						wlr_egl_finish(&x11->egl);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (x11->cursor) {
 | 
						if (x11->cursor) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue