mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	config: free_bar: Check if outputs is NULL.
bar_config.outputs is NULL if no output is explicitly defined in config (ie. use for for all outputs).
This commit is contained in:
		
							parent
							
								
									3777c8993b
								
							
						
					
					
						commit
						2779559b15
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -53,7 +53,9 @@ static void free_bar(struct bar_config *bar) {
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	list_free(bar->bindings);
 | 
						list_free(bar->bindings);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	free_flat_list(bar->outputs);
 | 
						if (bar->outputs) {
 | 
				
			||||||
 | 
							free_flat_list(bar->outputs);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	free(bar);
 | 
						free(bar);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue