summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.c b/config.c
index ed77810..fdbd05f 100644
--- a/config.c
+++ b/config.c
@@ -787,7 +787,9 @@ void config_free(Ted *ted) {
}
for (u32 i = 0; i < ted->nstrings; ++i) {
free(ted->strings[i]);
+ ted->strings[i] = NULL;
}
+ ted->nstrings = 0;
arr_clear(ted->all_settings);
ted->default_settings = NULL;
}