mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	types/wlr_tearing_control_v1: use safe list iteration on destroy
This commit is contained in:
		
							parent
							
								
									c2aa7fd965
								
							
						
					
					
						commit
						9816b59b0e
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -149,8 +149,8 @@ static void handle_display_destroy(struct wl_listener *listener, void *data) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wl_signal_emit_mutable(&manager->events.destroy, NULL);
 | 
						wl_signal_emit_mutable(&manager->events.destroy, NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct wlr_tearing_control_v1 *hint;
 | 
						struct wlr_tearing_control_v1 *hint, *tmp;
 | 
				
			||||||
	wl_list_for_each(hint, &manager->surface_hints, link) {
 | 
						wl_list_for_each_safe(hint, tmp, &manager->surface_hints, link) {
 | 
				
			||||||
		destroy_tearing_hint(hint);
 | 
							destroy_tearing_hint(hint);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue