diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2018-07-04 18:43:35 +0900 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2018-07-05 08:13:10 +0900 |
commit | 9f5d5396579e0029c8841992ca39e850281a2df6 (patch) | |
tree | 2075c7a38611c42dd70361ff5b9a096871efdef2 | |
parent | keyboard: free xkb keymap on destroy (diff) | |
download | sway-9f5d5396579e0029c8841992ca39e850281a2df6.tar.gz sway-9f5d5396579e0029c8841992ca39e850281a2df6.tar.zst sway-9f5d5396579e0029c8841992ca39e850281a2df6.zip |
config: add a couple of forgotten frees
-rw-r--r-- | sway/config.c | 7 | ||||
-rw-r--r-- | sway/config/bar.c | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c index 0aae1696..89b7d349 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -87,7 +87,12 @@ void free_config(struct sway_config *config) { | |||
87 | list_free(config->cmd_queue); | 87 | list_free(config->cmd_queue); |
88 | list_free(config->workspace_outputs); | 88 | list_free(config->workspace_outputs); |
89 | list_free(config->pid_workspaces); | 89 | list_free(config->pid_workspaces); |
90 | list_free(config->output_configs); | 90 | if (config->output_configs) { |
91 | for (int i = 0; i < config->output_configs->length; i++) { | ||
92 | free_output_config(config->output_configs->items[i]); | ||
93 | } | ||
94 | list_free(config->output_configs); | ||
95 | } | ||
91 | if (config->input_configs) { | 96 | if (config->input_configs) { |
92 | for (int i = 0; i < config->input_configs->length; i++) { | 97 | for (int i = 0; i < config->input_configs->length; i++) { |
93 | free_input_config(config->input_configs->items[i]); | 98 | free_input_config(config->input_configs->items[i]); |
diff --git a/sway/config/bar.c b/sway/config/bar.c index b97076a0..ee062c6a 100644 --- a/sway/config/bar.c +++ b/sway/config/bar.c | |||
@@ -30,6 +30,7 @@ void free_bar_config(struct bar_config *bar) { | |||
30 | if (!bar) { | 30 | if (!bar) { |
31 | return; | 31 | return; |
32 | } | 32 | } |
33 | free(bar->id); | ||
33 | free(bar->mode); | 34 | free(bar->mode); |
34 | free(bar->position); | 35 | free(bar->position); |
35 | free(bar->hidden_state); | 36 | free(bar->hidden_state); |