aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-01-05 09:40:47 -0500
committerLibravatar GitHub <noreply@github.com>2018-01-05 09:40:47 -0500
commitfdc92e745498a4e0707a51c3fd3390d462e9ae59 (patch)
tree40cdc706c8b1439d630c6b514817c8e6f0b4e4fd /sway/config.c
parentMerge pull request #1552 from martinetd/cleanup (diff)
parentconfig: add 'set' command (diff)
downloadsway-fdc92e745498a4e0707a51c3fd3390d462e9ae59.tar.gz
sway-fdc92e745498a4e0707a51c3fd3390d462e9ae59.tar.zst
sway-fdc92e745498a4e0707a51c3fd3390d462e9ae59.zip
Merge pull request #1554 from martinetd/cmd_set
config: add 'set' command
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c
index 627ed94f..e0a93e19 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -61,7 +61,12 @@ void free_config(struct sway_config *config) {
61 } 61 }
62 62
63 // TODO: handle all currently unhandled lists as we add implementations 63 // TODO: handle all currently unhandled lists as we add implementations
64 list_free(config->symbols); 64 if (config->symbols) {
65 for (i = 0; i < config->symbols->length; i++) {
66 free_sway_variable(config->symbols->items[i]);
67 }
68 list_free(config->symbols);
69 }
65 if (config->modes) { 70 if (config->modes) {
66 for (i = 0; i < config->modes->length; i++) { 71 for (i = 0; i < config->modes->length; i++) {
67 free_mode(config->modes->items[i]); 72 free_mode(config->modes->items[i]);