aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-11-14 21:25:26 -0500
committerGitHub <noreply@github.com>2018-11-14 21:25:26 -0500
commit484bf591be330905a4d4720efa7eb8cd16e53576 (patch)
tree27a33ba71b34918c98b4c3c120a999bd9b8488aa /swaybar
parent47cca240e26992782622a3dc360ed3afec83b47f (diff)
parenteda1bf769f239a9e8d5a9907255a330e3113a649 (diff)
Merge pull request #3121 from c-edw/feature/MissingFrees
[WIP] Free unfreed resources.
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/config.c1
-rw-r--r--swaybar/status_line.c3
2 files changed, 4 insertions, 0 deletions
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);
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);
}