Mercurial > vim
comparison src/if_py_both.h @ 16140:ab815ed87969 v8.1.1075
patch 8.1.1075: function reference count wrong in Python code
commit https://github.com/vim/vim/commit/de5b3800427328170574f1950ae75776e020f4e7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 30 12:51:22 2019 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Mar 2019 13:00:05 +0100 |
parents | bf8cf5c3b784 |
children | 8c3a1bd270bb |
comparison
equal
deleted
inserted
replaced
16139:695cec8269e4 | 16140:ab815ed87969 |
---|---|
1208 return NULL; | 1208 return NULL; |
1209 | 1209 |
1210 if (!(paths = Vim_GetPaths(self))) | 1210 if (!(paths = Vim_GetPaths(self))) |
1211 return NULL; | 1211 return NULL; |
1212 | 1212 |
1213 spec = PyObject_CallFunction(py_find_spec, "sNN", fullname, paths, target); | 1213 spec = PyObject_CallFunction(py_find_spec, "sOO", fullname, paths, target); |
1214 | 1214 |
1215 Py_DECREF(paths); | 1215 Py_DECREF(paths); |
1216 | 1216 |
1217 if (!spec) | 1217 if (!spec) |
1218 { | 1218 { |