mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	dont deallocate in container_close
This commit is contained in:
		
							parent
							
								
									20f9d49b82
								
							
						
					
					
						commit
						33006c4e64
					
				
					 1 changed files with 0 additions and 8 deletions
				
			
		| 
						 | 
					@ -174,17 +174,9 @@ struct sway_container *container_close(struct sway_container *con) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	switch (con->type) {
 | 
						switch (con->type) {
 | 
				
			||||||
		case C_TYPES:
 | 
							case C_TYPES:
 | 
				
			||||||
			wlr_log(L_ERROR, "tried to close an invalid container");
 | 
					 | 
				
			||||||
			break;
 | 
					 | 
				
			||||||
		case C_ROOT:
 | 
							case C_ROOT:
 | 
				
			||||||
			wlr_log(L_ERROR, "tried to close the root container");
 | 
					 | 
				
			||||||
			break;
 | 
					 | 
				
			||||||
		case C_OUTPUT:
 | 
							case C_OUTPUT:
 | 
				
			||||||
			container_output_destroy(con);
 | 
					 | 
				
			||||||
			break;
 | 
					 | 
				
			||||||
		case C_WORKSPACE:
 | 
							case C_WORKSPACE:
 | 
				
			||||||
			container_workspace_destroy(con);
 | 
					 | 
				
			||||||
			break;
 | 
					 | 
				
			||||||
		case C_CONTAINER:
 | 
							case C_CONTAINER:
 | 
				
			||||||
			container_for_each_descendant_dfs(con, container_close_func, NULL);
 | 
								container_for_each_descendant_dfs(con, container_close_func, NULL);
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue