From b5d95f264d5b08f6228e05be680ee36fc06ca6d6 Mon Sep 17 00:00:00 2001 From: Connor E <38229097+c-edw@users.noreply.github.com> Date: Tue, 13 Nov 2018 13:45:01 +0000 Subject: Add some missing frees. --- swaybar/config.c | 1 + 1 file changed, 1 insertion(+) (limited to 'swaybar') diff --git a/swaybar/config.c b/swaybar/config.c index 1293cdae..0fd1f02e 100644 --- a/swaybar/config.c +++ b/swaybar/config.c @@ -83,6 +83,7 @@ void free_config(struct swaybar_config *config) { free(config->mode); free(config->hidden_state); free(config->sep_symbol); + free(config->modifier); for (int i = 0; i < config->bindings->length; i++) { struct swaybar_binding *binding = config->bindings->items[i]; free_binding(binding); -- cgit v1.2.3 From eda1bf769f239a9e8d5a9907255a330e3113a649 Mon Sep 17 00:00:00 2001 From: Connor E <38229097+c-edw@users.noreply.github.com> Date: Tue, 13 Nov 2018 14:42:00 +0000 Subject: More frees. --- sway/config.c | 2 ++ sway/config/bar.c | 1 + swaybar/status_line.c | 3 +++ swaynag/swaynag.c | 1 + 4 files changed, 7 insertions(+) (limited to 'swaybar') diff --git a/sway/config.c b/sway/config.c index c1320acf..e9b55061 100644 --- a/sway/config.c +++ b/sway/config.c @@ -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); diff --git a/sway/config/bar.c b/sway/config/bar.c index 8b88642e..7bca5f49 100644 --- a/sway/config/bar.c +++ b/sway/config/bar.c @@ -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++) { diff --git a/swaybar/status_line.c b/swaybar/status_line.c index 65d6c052..744d2785 100644 --- a/swaybar/status_line.c +++ b/swaybar/status_line.c @@ -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); } diff --git a/swaynag/swaynag.c b/swaynag/swaynag.c index fa6bbe05..06185f20 100644 --- a/swaynag/swaynag.c +++ b/swaynag/swaynag.c @@ -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); -- cgit v1.2.3