Skip to content
Snippets Groups Projects
Commit e91954d6 authored by Gerardo Tauriello's avatar Gerardo Tauriello
Browse files

SCHWED-3292: fixed segfault for EntityView.RemoveChain with GetChainList.

Combination of reference_existing_object and RemoveChain can lead to segfaults.
Overhead of change is 1us per call for a test case with 18 chains. Hence it is
absolutely negligible.
parent 95182f8e
No related branches found
No related tags found
No related merge requests found
......@@ -197,10 +197,10 @@ void export_EntityView()
make_function(&EntityView::GetBondList,
return_value_policy<reference_existing_object>()))
.def("GetChainList", &EntityView::GetChainList,
return_value_policy<reference_existing_object>())
return_value_policy<copy_const_reference>())
.add_property("chains",
make_function(&EntityView::GetChainList,
return_value_policy<reference_existing_object>()))
return_value_policy<copy_const_reference>()))
.def(self==self)
.def(self!=self)
.def("Dump", &EntityView::Dump)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment