mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 08:56:29 +00:00
refactor: free more reachable memory with EXITFREE (#26349)
Discovered using __sanitizer_print_memory_profile().
This commit is contained in:
@@ -210,3 +210,12 @@ void ui_client_event_raw_line(GridLineEvent *g)
|
||||
tui_raw_line(tui, grid, row, startcol, endcol, clearcol, g->cur_attr, lineflags,
|
||||
(const schar_T *)grid_line_buf_char, grid_line_buf_attr);
|
||||
}
|
||||
|
||||
#ifdef EXITFREE
|
||||
void ui_client_free_all_mem(void)
|
||||
{
|
||||
tui_free_all_mem(tui);
|
||||
xfree(grid_line_buf_char);
|
||||
xfree(grid_line_buf_attr);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user