summaryrefslogtreecommitdiff
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-20 03:45:36 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-20 03:45:36 +0200
commit75a1a9415b9c207de5a29b25c0d1949c6c9c5c61 (patch)
tree470a0887aed4e52e342edbca555e0bec1b85af99 /src/ex_cmds2.c
parenta3fce62c911c204ae144b55018f6dc9295088850 (diff)
downloadvim-git-75a1a9415b9c207de5a29b25c0d1949c6c9c5c61.tar.gz
patch 8.1.1575: callbacks may be garbage collectedv8.1.1575
Problem: Callbacks may be garbage collected. Solution: Set reference in callbacks. (Ozaki Kiichi, closes #4564)
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index af7aa4b8e..2537e8d7b 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -566,7 +566,7 @@ set_ref_in_timer(int copyID)
timer_T *timer;
typval_T tv;
- for (timer = first_timer; timer != NULL; timer = timer->tr_next)
+ for (timer = first_timer; !abort && timer != NULL; timer = timer->tr_next)
{
if (timer->tr_callback.cb_partial != NULL)
{