diff src/eval.c @ 8734:986f7c00d43d v7.4.1656

commit https://github.com/vim/vim/commit/92e35efaf6a3278e4729115648997f09cd4005f5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 26 18:20:41 2016 +0100 patch 7.4.1656 Problem: Crash when using partial with a timer. Solution: Increment partial reference count. (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Sat, 26 Mar 2016 18:30:06 +0100
parents c1ac169ee618
children e770986c855a
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -20190,6 +20190,7 @@ get_callback(typval_T *arg, partial_T **
     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;