Browse files

python: fix leaky Py_None return by calling Py_INCREF(Py_None) before…

… returning - closes #1221
  • Loading branch information...
1 parent 7fe677d commit 92dd30556a1af27bb8f9e5efdb60a14c56f2fec4 @springmeyer springmeyer committed May 18, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 bindings/python/mapnik_value_converter.hpp
View
1 bindings/python/mapnik_value_converter.hpp
@@ -59,6 +59,7 @@ namespace boost { namespace python {
PyObject * operator() (mapnik::value_null const& /*s*/) const
{
+ Py_INCREF(Py_None);
return Py_None;
}
};

0 comments on commit 92dd305

Please sign in to comment.