0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1484: some tests are slow

Problem:    Some tests are slow.
Solution:   Add timing to the test messages.  Fix double free when quitting in
            VimLeavePre autocmd.
This commit is contained in:
Bram Moolenaar
2019-06-06 18:05:25 +02:00
parent 5d30ff1964
commit 75ee544f99
3 changed files with 22 additions and 5 deletions

View File

@@ -430,11 +430,12 @@ eval_clear(void)
vim_free(SCRIPT_SV(i));
ga_clear(&ga_scripts);
/* unreferenced lists and dicts */
(void)garbage_collect(FALSE);
/* functions */
// functions need to be freed before gargabe collecting, otherwise local
// variables might be freed twice.
free_all_functions();
// unreferenced lists and dicts
(void)garbage_collect(FALSE);
}
#endif