diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-01-17 09:49:02 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-01-17 09:49:02 -0500 |
commit | 9f54cd89359119897fed2747c373879c09ae8706 (patch) | |
tree | 024ecf284c38c5017068b82902d66ec4342f8291 /sway/config.c | |
parent | Merge pull request #1566 from acrisci/render-loop (diff) | |
download | sway-9f54cd89359119897fed2747c373879c09ae8706.tar.gz sway-9f54cd89359119897fed2747c373879c09ae8706.tar.zst sway-9f54cd89359119897fed2747c373879c09ae8706.zip |
copy config references for input and seat
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 5ec45b17..cbd9a8b2 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -84,7 +84,12 @@ void free_config(struct sway_config *config) { | |||
84 | } | 84 | } |
85 | list_free(config->input_configs); | 85 | list_free(config->input_configs); |
86 | } | 86 | } |
87 | list_free(config->seat_configs); | 87 | if (config->seat_configs) { |
88 | for (i = 0; i < config->seat_configs->length; i++) { | ||
89 | free_seat_config(config->seat_configs->items[i]); | ||
90 | } | ||
91 | list_free(config->seat_configs); | ||
92 | } | ||
88 | list_free(config->criteria); | 93 | list_free(config->criteria); |
89 | list_free(config->no_focus); | 94 | list_free(config->no_focus); |
90 | list_free(config->active_bar_modifiers); | 95 | list_free(config->active_bar_modifiers); |