diff options
author | pommicket <pommicket@gmail.com> | 2023-01-08 11:48:19 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-08 11:48:19 -0500 |
commit | 34212b559d7bb0eb0d4e7797ba3e9b1a718cedac (patch) | |
tree | c0d51adcde6c93adc340ae1b9a6cc4fd721c49cc /ide-autocomplete.c | |
parent | 21c2b2244e4abddd70b9e1ee298dfe4b7a6d6d2d (diff) |
fix memory leaks
Diffstat (limited to 'ide-autocomplete.c')
-rw-r--r-- | ide-autocomplete.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ide-autocomplete.c b/ide-autocomplete.c index f2382cb..6d5716b 100644 --- a/ide-autocomplete.c +++ b/ide-autocomplete.c @@ -340,6 +340,7 @@ void autocomplete_process_lsp_response(Ted *ted, const LSPResponse *response) { return; } + autocomplete_clear_completions(ac); arr_set_len(ac->completions, ncompletions); for (size_t i = 0; i < ncompletions; ++i) { const LSPCompletionItem *lsp_completion = &completion->items[i]; |