forked from aniani/vim
patch 8.0.0371: leaking memory when setting v:completed_item
Problem: Leaking memory when setting v:completed_item. Solution: Or the flags instead of setting them.
This commit is contained in:
parent
a12e40351d
commit
14c2e18b63
@ -6640,7 +6640,7 @@ set_vim_var_dict(int idx, dict_T *val)
|
||||
if (HASHITEM_EMPTY(hi))
|
||||
continue;
|
||||
--todo;
|
||||
HI2DI(hi)->di_flags = DI_FLAGS_RO | DI_FLAGS_FIX;
|
||||
HI2DI(hi)->di_flags |= DI_FLAGS_RO | DI_FLAGS_FIX;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -764,6 +764,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
371,
|
||||
/**/
|
||||
370,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user