mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
refactor: free more reachable memory with EXITFREE (#26349)
Discovered using __sanitizer_print_memory_profile().
This commit is contained in:
@@ -2573,6 +2573,11 @@ void do_autocmd_uienter(uint64_t chanid, bool attached)
|
||||
{
|
||||
static bool recursive = false;
|
||||
|
||||
#ifdef EXITFREE
|
||||
if (entered_free_all_mem) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
if (starting == NO_SCREEN) {
|
||||
return; // user config hasn't been sourced yet
|
||||
}
|
||||
|
Reference in New Issue
Block a user