2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-19 16:32:16 +00:00

Fix reference counting error.

[SVN r37312]
This commit is contained in:
Stefan Seefeld
2007-03-28 18:12:08 +00:00
parent ea4e6c0a4c
commit 98a468dadc

View File

@@ -17,7 +17,7 @@ object BOOST_PYTHON_DECL import(str name)
{
// should be 'char const *' but older python versions don't use 'const' yet.
char *n = python::extract<char *>(name);
python::handle<> module(python::borrowed(PyImport_ImportModule(n)));
python::handle<> module(PyImport_ImportModule(n));
return python::object(module);
}