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

Fix for python::tuple.set_item() memory leak.

[SVN r9316]
This commit is contained in:
Ralf W. Grosse-Kunstleve
2001-02-23 08:58:32 +00:00
parent f3d9193743
commit b000c75947

View File

@@ -97,7 +97,7 @@ BOOST_PYTHON_BEGIN_CONVERSION_NAMESPACE
{
python::tuple result(3);
for (int i = 0; i < 3; i++)
result.set_item(i, to_python(hkl.v[i]));
result.set_item(i, python::ref(to_python(hkl.v[i])));
return result.reference().release();
}