mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/drm: assert connector state after wlr_output_destroy
This commit is contained in:
		
							parent
							
								
									85cf4b235d
								
							
						
					
					
						commit
						2de400a541
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1558,6 +1558,8 @@ static void disconnect_drm_connector(struct wlr_drm_connector *conn) {
 | 
			
		|||
	// This will cleanup the compositor-facing wlr_output, but won't destroy
 | 
			
		||||
	// our wlr_drm_connector.
 | 
			
		||||
	wlr_output_destroy(&conn->output);
 | 
			
		||||
 | 
			
		||||
	assert(conn->state == WLR_DRM_CONN_DISCONNECTED);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void destroy_drm_connector(struct wlr_drm_connector *conn) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue