diff options
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) { | |||
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]); |