Mercurial > vim
comparison src/eval.c @ 16967:586d625e21b4 v8.1.1484
patch 8.1.1484: some tests are slow
commit https://github.com/vim/vim/commit/75ee544f99ca66be8105570c6309d95435ad30d1
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 6 18:05:25 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 06 Jun 2019 18:15:05 +0200 |
parents | a836d122231a |
children | 8c794a694d66 |
comparison
equal
deleted
inserted
replaced
16966:d285427f6849 | 16967:586d625e21b4 |
---|---|
428 vars_clear(&SCRIPT_VARS(i)); | 428 vars_clear(&SCRIPT_VARS(i)); |
429 for (i = 1; i <= ga_scripts.ga_len; ++i) | 429 for (i = 1; i <= ga_scripts.ga_len; ++i) |
430 vim_free(SCRIPT_SV(i)); | 430 vim_free(SCRIPT_SV(i)); |
431 ga_clear(&ga_scripts); | 431 ga_clear(&ga_scripts); |
432 | 432 |
433 /* unreferenced lists and dicts */ | 433 // functions need to be freed before gargabe collecting, otherwise local |
434 // variables might be freed twice. | |
435 free_all_functions(); | |
436 | |
437 // unreferenced lists and dicts | |
434 (void)garbage_collect(FALSE); | 438 (void)garbage_collect(FALSE); |
435 | |
436 /* functions */ | |
437 free_all_functions(); | |
438 } | 439 } |
439 #endif | 440 #endif |
440 | 441 |
441 | 442 |
442 /* | 443 /* |