Commit dd4833a3 authored by Murray Cumming's avatar Murray Cumming
Browse files

PyGlomRelated: Use unique_ptr::release() instead of get.

To avoid a double delete.
parent 7d5e8ac4
......@@ -89,7 +89,7 @@ boost::python::object PyGlomRelated::getitem(const boost::python::object& cppite
pyRelatedRecord->set_relationship(iterFind->second, from_key_value, record->m_document);
//Store it in the cache:
boost::python::object objectRelatedRecord(pyRelatedRecord.get());
boost::python::object objectRelatedRecord(pyRelatedRecord.release());
m_map_relatedrecords[key] = objectRelatedRecord;
return objectRelatedRecord;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment