patch 7.4.1656

Problem:    Crash when using partial with a timer.
Solution:   Increment partial reference count. (Hirohito Higashi)
This commit is contained in:
Bram Moolenaar
2016-03-26 18:20:41 +01:00
parent 1e7885abe8
commit 92e35efaf6
3 changed files with 16 additions and 0 deletions

View File

@@ -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;