mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
refactor: free more reachable memory with EXITFREE (#26349)
Discovered using __sanitizer_print_memory_profile().
This commit is contained in:
@@ -60,6 +60,15 @@ void ui_comp_init(void)
|
||||
curgrid = &default_grid;
|
||||
}
|
||||
|
||||
#ifdef EXITFREE
|
||||
void ui_comp_free_all_mem(void)
|
||||
{
|
||||
kv_destroy(layers);
|
||||
xfree(linebuf);
|
||||
xfree(attrbuf);
|
||||
}
|
||||
#endif
|
||||
|
||||
void ui_comp_syn_init(void)
|
||||
{
|
||||
dbghl_normal = syn_check_group(S_LEN("RedrawDebugNormal"));
|
||||
|
Reference in New Issue
Block a user