mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #339 from mikkeloscar/free-bar-3
Use free_flat_list for simple char* list.
This commit is contained in:
		
						commit
						b8f30cbae4
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -49,10 +49,7 @@ static void free_bar(struct bar_config *bar) {
 | 
			
		|||
	}
 | 
			
		||||
	list_free(bar->bindings);
 | 
			
		||||
 | 
			
		||||
	for (i = 0; i < bar->outputs->length; ++i) {
 | 
			
		||||
		free(bar->outputs->items[i]);
 | 
			
		||||
	}
 | 
			
		||||
	list_free(bar->outputs);
 | 
			
		||||
	free_flat_list(bar->outputs);
 | 
			
		||||
	free(bar);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue