diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-26 18:20:41 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-26 18:20:41 +0100 |
commit | 92e35efaf6a3278e4729115648997f09cd4005f5 (patch) | |
tree | 3bc925088f60a9d49de94350faff812ec662cf90 /src/eval.c | |
parent | 1e7885abe8daa793fd9328d0fd6c456214cb467e (diff) | |
download | vim-git-92e35efaf6a3278e4729115648997f09cd4005f5.tar.gz |
patch 7.4.1656v7.4.1656
Problem: Crash when using partial with a timer.
Solution: Increment partial reference count. (Hirohito Higashi)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 225658921..06f3585b3 100644 --- a/src/eval.c +++ b/src/eval.c @@ -20190,6 +20190,7 @@ get_callback(typval_T *arg, partial_T **pp) if (arg->v_type == VAR_PARTIAL && arg->vval.v_partial != NULL) { *pp = arg->vval.v_partial; + ++(*pp)->pt_refcount; return (*pp)->pt_name; } *pp = NULL; |