patch 8.1.1075: function reference count wrong in Python code
Problem: Function reference count wrong in Python code.
Solution: Use "O" instead of "N" for the arguments. (Ben Jackson,
closes #4188)
This commit is contained in:
@ -1210,7 +1210,7 @@ FinderFindSpec(PyObject *self, PyObject *args)
|
|||||||
if (!(paths = Vim_GetPaths(self)))
|
if (!(paths = Vim_GetPaths(self)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
spec = PyObject_CallFunction(py_find_spec, "sNN", fullname, paths, target);
|
spec = PyObject_CallFunction(py_find_spec, "sOO", fullname, paths, target);
|
||||||
|
|
||||||
Py_DECREF(paths);
|
Py_DECREF(paths);
|
||||||
|
|
||||||
|
|||||||
@ -775,6 +775,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1075,
|
||||||
/**/
|
/**/
|
||||||
1074,
|
1074,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user