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 fcdf7c0..efba92e 100644
--- a/config.c
+++ b/config.c
@@ -324,6 +324,8 @@ void config_read(Ted *ted, char const *filename) {
if (!isspace(*src))
*dst++ = *src;
*dst = 0;
+ if (settings->language_extensions[lang])
+ free(settings->language_extensions[lang]);
settings->language_extensions[lang] = new_str;
}
}