mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-10-29 05:40:12 -04:00 
			
		
		
		
	backend/session: Close remaining devices on destroy
This commit is contained in:
		
							parent
							
								
									e7515529ce
								
							
						
					
					
						commit
						3432ab2ba7
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -265,6 +265,11 @@ void wlr_session_destroy(struct wlr_session *session) { | ||||||
| 	udev_monitor_unref(session->mon); | 	udev_monitor_unref(session->mon); | ||||||
| 	udev_unref(session->udev); | 	udev_unref(session->udev); | ||||||
| 
 | 
 | ||||||
|  | 	struct wlr_device *dev, *tmp_dev; | ||||||
|  | 	wl_list_for_each_safe(dev, tmp_dev, &session->devices, link) { | ||||||
|  | 		wlr_session_close_file(session, dev); | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
| 	libseat_session_finish(session); | 	libseat_session_finish(session); | ||||||
| 	free(session); | 	free(session); | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kenny Levinsen
						Kenny Levinsen