]> granicus.if.org Git - vim/commitdiff
patch 8.1.1075: function reference count wrong in Python code v8.1.1075
authorBram Moolenaar <Bram@vim.org>
Sat, 30 Mar 2019 11:51:22 +0000 (12:51 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 30 Mar 2019 11:51:22 +0000 (12:51 +0100)
Problem:    Function reference count wrong in Python code.
Solution:   Use "O" instead of "N" for the arguments. (Ben Jackson,
            closes #4188)

src/if_py_both.h
src/version.c

index b27f93e49eb333a545659458f7f79a4afabf4831..20affe31db6061287ead206593a28abbd4fd9498 100644 (file)
@@ -1210,7 +1210,7 @@ FinderFindSpec(PyObject *self, PyObject *args)
     if (!(paths = Vim_GetPaths(self)))
        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);
 
index 01268b1e275c0e1954c7d80ad537088bb2223688..2346dc526c8ab5d21655d65f673c30db7e052930 100644 (file)
@@ -775,6 +775,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1075,
 /**/
     1074,
 /**/