diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-04-14 12:46:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-04-14 12:46:51 +0200 |
commit | ebf7dfa6f121c82f97d2adca3d45fbaba9ad8f7e (patch) | |
tree | 0b6608049e1b86a10bb179674ed3bf9e41706a15 /src/getchar.c | |
parent | 700eefe5a4385fd128f5496e3ca384869752376a (diff) | |
download | vim-git-ebf7dfa6f121c82f97d2adca3d45fbaba9ad8f7e.tar.gz |
patch 7.4.1727v7.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.
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/getchar.c b/src/getchar.c index 4a225e1b6..c771117ad 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -1523,7 +1523,7 @@ before_blocking(void) updatescript(0); #ifdef FEAT_EVAL if (may_garbage_collect) - garbage_collect(); + garbage_collect(FALSE); #endif } @@ -1571,7 +1571,7 @@ vgetc(void) /* Do garbage collection when garbagecollect() was called previously and * we are now at the toplevel. */ if (may_garbage_collect && want_garbage_collect) - garbage_collect(); + garbage_collect(FALSE); #endif /* |