mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	scene: remove surface commit listener when node is destroyed
This commit is contained in:
		
							parent
							
								
									b62ce3c3c8
								
							
						
					
					
						commit
						f7ea33da0a
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -101,6 +101,7 @@ void wlr_scene_node_destroy(struct wlr_scene_node *node) {
 | 
			
		|||
		break;
 | 
			
		||||
	case WLR_SCENE_NODE_SURFACE:;
 | 
			
		||||
		struct wlr_scene_surface *scene_surface = wlr_scene_surface_from_node(node);
 | 
			
		||||
		wl_list_remove(&scene_surface->surface_commit.link);
 | 
			
		||||
		wl_list_remove(&scene_surface->surface_destroy.link);
 | 
			
		||||
		free(scene_surface);
 | 
			
		||||
		break;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue