diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2017-12-29 15:31:04 +0100 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2018-01-05 15:36:20 +0100 |
commit | c83900593daace2ef85174163edf2748179e28f2 (patch) | |
tree | 40cdc706c8b1439d630c6b514817c8e6f0b4e4fd /sway/config.c | |
parent | c5452a3220b0f42c310a17a375908535e661debf (diff) |
config: add 'set' command
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 7 |
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) { } // TODO: handle all currently unhandled lists as we add implementations - list_free(config->symbols); + if (config->symbols) { + for (i = 0; i < config->symbols->length; i++) { + free_sway_variable(config->symbols->items[i]); + } + list_free(config->symbols); + } if (config->modes) { for (i = 0; i < config->modes->length; i++) { free_mode(config->modes->items[i]); |