|
|
@ -444,7 +444,7 @@ bool load_main_config(const char *file, bool is_active, bool validating) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
free_flat_list(secconfigs);
|
|
|
|
list_free_items_and_destroy(secconfigs);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
@ -652,7 +652,7 @@ bool read_config(FILE *file, struct sway_config *config,
|
|
|
|
|
|
|
|
|
|
|
|
if (read + length > config_size) {
|
|
|
|
if (read + length > config_size) {
|
|
|
|
wlr_log(WLR_ERROR, "Config file changed during reading");
|
|
|
|
wlr_log(WLR_ERROR, "Config file changed during reading");
|
|
|
|
free_flat_list(stack);
|
|
|
|
list_free_items_and_destroy(stack);
|
|
|
|
free(line);
|
|
|
|
free(line);
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -681,7 +681,7 @@ bool read_config(FILE *file, struct sway_config *config,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
char *expanded = expand_line(block, line, brace_detected > 0);
|
|
|
|
char *expanded = expand_line(block, line, brace_detected > 0);
|
|
|
|
if (!expanded) {
|
|
|
|
if (!expanded) {
|
|
|
|
free_flat_list(stack);
|
|
|
|
list_free_items_and_destroy(stack);
|
|
|
|
free(line);
|
|
|
|
free(line);
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -746,7 +746,7 @@ bool read_config(FILE *file, struct sway_config *config,
|
|
|
|
free(line);
|
|
|
|
free(line);
|
|
|
|
free_cmd_results(res);
|
|
|
|
free_cmd_results(res);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
free_flat_list(stack);
|
|
|
|
list_free_items_and_destroy(stack);
|
|
|
|
config->current_config_line_number = 0;
|
|
|
|
config->current_config_line_number = 0;
|
|
|
|
config->current_config_line = NULL;
|
|
|
|
config->current_config_line = NULL;
|
|
|
|
|
|
|
|
|
|
|
|