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.

ebf7dfa6f1
This commit is contained in:
Michael Ennen
2017-01-05 17:13:23 -07:00
parent 64c375c589
commit b0fc6108c9
9 changed files with 373 additions and 23 deletions

View File

@@ -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);
}