summaryrefslogtreecommitdiff
path: root/lsp-write.c
diff options
context:
space:
mode:
Diffstat (limited to 'lsp-write.c')
-rw-r--r--lsp-write.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lsp-write.c b/lsp-write.c
index 830c0ab..df695a6 100644
--- a/lsp-write.c
+++ b/lsp-write.c
@@ -680,3 +680,10 @@ void write_message(LSP *lsp, LSPMessage *message) {
}
#undef write_bool
+
+void lsp_write_quit(void) {
+ arr_foreach_ptr(language_ids, LanguageId, lid) {
+ free(lid->identifier);
+ }
+ arr_clear(language_ids);
+}