mirror of
https://github.com/boostorg/python.git
synced 2026-01-22 17:32:55 +00:00
Fix for python::tuple.set_item() memory leak.
[SVN r9316]
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user