mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Free xwayland cursor in wlr_xwayland_destroy
One of many memory leaks detected by an asan build
This commit is contained in:
		
							parent
							
								
									879cadd34e
								
							
						
					
					
						commit
						6af748171a
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -64,6 +64,7 @@ void wlr_xwayland_destroy(struct wlr_xwayland *xwayland) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wl_list_remove(&xwayland->server_destroy.link);
 | 
						wl_list_remove(&xwayland->server_destroy.link);
 | 
				
			||||||
	wl_list_remove(&xwayland->server_ready.link);
 | 
						wl_list_remove(&xwayland->server_ready.link);
 | 
				
			||||||
 | 
						free(xwayland->cursor);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wlr_xwayland_set_seat(xwayland, NULL);
 | 
						wlr_xwayland_set_seat(xwayland, NULL);
 | 
				
			||||||
	wlr_xwayland_server_destroy(xwayland->server);
 | 
						wlr_xwayland_server_destroy(xwayland->server);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue