mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Set textures to null when destroying
This commit is contained in:
		
							parent
							
								
									5384fdcbc6
								
							
						
					
					
						commit
						b351d0a64a
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -592,6 +592,7 @@ static void update_title_texture(struct sway_container *con,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (*texture) {
 | 
						if (*texture) {
 | 
				
			||||||
		wlr_texture_destroy(*texture);
 | 
							wlr_texture_destroy(*texture);
 | 
				
			||||||
 | 
							*texture = NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (!con->formatted_title) {
 | 
						if (!con->formatted_title) {
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -779,6 +779,7 @@ static void update_marks_texture(struct sway_view *view,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (*texture) {
 | 
						if (*texture) {
 | 
				
			||||||
		wlr_texture_destroy(*texture);
 | 
							wlr_texture_destroy(*texture);
 | 
				
			||||||
 | 
							*texture = NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (!view->marks->length) {
 | 
						if (!view->marks->length) {
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue