Skip to content

Commit

Permalink
Python bindings: add missing reference increment on Py_None in error …
Browse files Browse the repository at this point in the history
…case of Geometry.GetPoints() (fixes #8945)
  • Loading branch information
rouault authored and github-actions[bot] committed Dec 9, 2023
1 parent 4979cdb commit 221ee4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions swig/include/python/typemaps_python.i
Original file line number Diff line number Diff line change
Expand Up @@ -2331,6 +2331,7 @@ DecomposeSequenceOf4DCoordinates( PyObject *seq, int nCount, double *x, double *
int nPointCount = *($1);
if (nPointCount == 0)
{
Py_INCREF(Py_None);
$result = Py_None;
}
else
Expand Down

0 comments on commit 221ee4c

Please sign in to comment.