mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	rootston: fix segfault when destroying unmapped fullscreen views
This commit is contained in:
		
							parent
							
								
									1454d1c8f8
								
							
						
					
					
						commit
						0c7371221c
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -439,6 +439,11 @@ void view_destroy(struct roots_view *view) {
 | 
				
			||||||
		view_unmap(view);
 | 
							view_unmap(view);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// Can happen if fullscreened while unmapped, and hasn't been mapped
 | 
				
			||||||
 | 
						if (view->fullscreen_output != NULL) {
 | 
				
			||||||
 | 
							view->fullscreen_output->fullscreen_view = NULL;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (view->destroy) {
 | 
						if (view->destroy) {
 | 
				
			||||||
		view->destroy(view);
 | 
							view->destroy(view);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue