summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-05-31 21:13:04 +0200
committerBram Moolenaar <Bram@vim.org>2016-05-31 21:13:04 +0200
commite3188e261569ae512fb1ae2653b57fdd9e259ca3 (patch)
tree87c05229ae16e555ac400824415470337734dba4 /src/eval.c
parentef3abc6442260e9a0314970a532400b05571d3fe (diff)
downloadvim-git-e3188e261569ae512fb1ae2653b57fdd9e259ca3.tar.gz
patch 7.4.1860v7.4.1860
Problem: Using a partial for timer_start() may cause a crash. Solution: Set the copyID in timer objects. (Ozaki Kiichi)
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c
index 3578c9997..d30a76653 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -7046,6 +7046,10 @@ garbage_collect(int testing)
abort = abort || set_ref_in_nb_channel(copyID);
#endif
+#ifdef FEAT_TIMERS
+ abort = abort || set_ref_in_timer(copyID);
+#endif
+
if (!abort)
{
/*