mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Free bar->bindings
This commit is contained in:
		
							parent
							
								
									0b5c695d8e
								
							
						
					
					
						commit
						95de999922
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -43,6 +43,11 @@ static void free_bar(struct bar_config *bar) {
 | 
				
			||||||
	free(bar->hidden_state);
 | 
						free(bar->hidden_state);
 | 
				
			||||||
	free(bar->status_command);
 | 
						free(bar->status_command);
 | 
				
			||||||
	free(bar->font);
 | 
						free(bar->font);
 | 
				
			||||||
 | 
						int i;
 | 
				
			||||||
 | 
						for (i = 0; i < bar->bindings->length; ++i) {
 | 
				
			||||||
 | 
							free_sway_mouse_binding(bar->bindings->items[i]);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						free(bar->bindings);
 | 
				
			||||||
	free(bar);
 | 
						free(bar);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue