diff options
author | Michael Ennen <mike.ennen@gmail.com> | 2017-01-05 17:13:23 -0700 |
---|---|---|
committer | Michael Ennen <mike.ennen@gmail.com> | 2017-02-14 17:38:15 -0700 |
commit | b0fc6108c923a198325354ae36b71f90c4c68e19 (patch) | |
tree | a23ea1020ceb97388d465964fd0e87533aa61438 /src/nvim/main.c | |
parent | 64c375c589437b811027c5602ecd3969edc162cb (diff) | |
download | rneovim-b0fc6108c923a198325354ae36b71f90c4c68e19.tar.gz rneovim-b0fc6108c923a198325354ae36b71f90c4c68e19.tar.bz2 rneovim-b0fc6108c923a198325354ae36b71f90c4c68e19.zip |
vim-patch:7.4.1727
Problem: Cannot detect a crash in tests when caused by garbagecollect().
Solution: Add garbagecollect_for_testing(). Do not free a job if is still
useful.
https://github.com/vim/vim/commit/ebf7dfa6f121c82f97d2adca3d45fbaba9ad8f7e
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index 88c1990786..fab968836c 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -624,8 +624,9 @@ void getout(int exitval) iconv_end(); #endif cs_end(); - if (garbage_collect_at_exit) - garbage_collect(); + if (garbage_collect_at_exit) { + garbage_collect(false); + } mch_exit(exitval); } |