mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 16:01:27 +00:00
More frees.
This commit is contained in:
parent
b5d95f264d
commit
eda1bf769f
|
@ -123,6 +123,8 @@ void free_config(struct sway_config *config) {
|
|||
}
|
||||
list_free(config->criteria);
|
||||
}
|
||||
free_mode(config->current_mode);
|
||||
free_bar_config(config->current_bar);
|
||||
list_free(config->no_focus);
|
||||
list_free(config->active_bar_modifiers);
|
||||
list_free(config->config_chain);
|
||||
|
|
|
@ -46,6 +46,7 @@ void free_bar_config(struct bar_config *bar) {
|
|||
free(bar->position);
|
||||
free(bar->hidden_state);
|
||||
free(bar->status_command);
|
||||
free(bar->swaybar_command);
|
||||
free(bar->font);
|
||||
free(bar->separator_symbol);
|
||||
for (int i = 0; i < bar->bindings->length; i++) {
|
||||
|
|
|
@ -183,6 +183,9 @@ void status_line_free(struct status_line *status) {
|
|||
}
|
||||
json_tokener_free(status->tokener);
|
||||
}
|
||||
free(status->read);
|
||||
free(status->write);
|
||||
free((char*) status->text);
|
||||
free(status->buffer);
|
||||
free(status);
|
||||
}
|
||||
|
|
|
@ -412,6 +412,7 @@ void swaynag_destroy(struct swaynag *swaynag) {
|
|||
free(button);
|
||||
}
|
||||
list_free(swaynag->buttons);
|
||||
free(swaynag->details.button_details);
|
||||
free(swaynag->details.message);
|
||||
free(swaynag->details.button_up.text);
|
||||
free(swaynag->details.button_down.text);
|
||||
|
|
Loading…
Reference in a new issue