diff options
author | pommicket <pommicket@gmail.com> | 2023-07-19 11:46:28 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-07-19 19:03:22 -0400 |
commit | 4143734747b7b544daecdf1b8676838362c6cb59 (patch) | |
tree | e7c879967027f47b957c35e551b3e971a6aab924 /syntax.c | |
parent | e5dc92fcd600b15977cad7c81de7b8c1cd11fb87 (diff) |
fix memory leaks (not really leaky)
Diffstat (limited to 'syntax.c')
-rw-r--r-- | syntax.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2214,3 +2214,11 @@ void syntax_register_language(const LanguageInfo *info) { lsp_register_language(info->id, info->lsp_identifier); } + +void syntax_quit(void) { + arr_foreach_ptr(language_names, LanguageName, lname) { + free(lname->name); + } + arr_clear(language_names); + arr_clear(syntax_highlighters); +} |