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 e0b65615..5b2b6569 100644 --- a/sway/config.c +++ b/sway/config.c @@ -128,6 +128,8 @@ void free_output_config(struct output_config *oc) { return; } free(oc->name); + free(oc->background); + free(oc->background_option); free(oc); } @@ -548,9 +550,12 @@ bool load_main_config(const char *file, bool is_active) { strcpy(_path, base); strcat(_path, ent->d_name); lstat(_path, &s); - if (S_ISREG(s.st_mode)) { + if (S_ISREG(s.st_mode) && ent->d_name[0] != '.') { list_add(secconfigs, _path); } + else { + free(_path); + } ent = readdir(dir); } closedir(dir); |