mirror of
https://github.com/zoriya/vim.git
synced 2025-12-19 05:35:17 +00:00
patch 7.4.1656
Problem: Crash when using partial with a timer. Solution: Increment partial reference count. (Hirohito Higashi)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user