summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-11-02 20:12:30 -0400
committerpommicket <pommicket@gmail.com>2022-11-02 20:12:30 -0400
commit760526ec4071f9392e5bfca77b19cb20f98c588e (patch)
treeaba49319680f0ddd430a85f743050d3529afcd10 /config.c
parent9d0433ba028792f5a468507dba28d406b9f758e7 (diff)
settings bugfixes, :insert-text, and a memory bugfix
the memory bug existed in the last release!
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;
}