diff src/eval.c @ 9153:c2fe86f2bda1 v7.4.1860

commit https://github.com/vim/vim/commit/e3188e261569ae512fb1ae2653b57fdd9e259ca3 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 31 21:13:04 2016 +0200 patch 7.4.1860 Problem: Using a partial for timer_start() may cause a crash. Solution: Set the copyID in timer objects. (Ozaki Kiichi)
author Christian Brabandt <cb@256bit.org>
date Tue, 31 May 2016 21:15:06 +0200
parents 1b41750311b6
children e316b83892c1
line wrap: on
line diff
--- 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)
     {
 	/*