2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 17:52:17 +00:00

Fix reference counting error.

[SVN r37312]
This commit is contained in:
Stefan Seefeld
2007-03-28 18:12:08 +00:00
parent 0f91872518
commit 1b5cd10f7c

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);
}