Fix various Py::Object leak
This commit is contained in:
@@ -1300,7 +1300,7 @@ Py::Tuple FemMeshPy::getGroups(void) const
|
||||
|
||||
Py::Object FemMeshPy::getVolume(void) const
|
||||
{
|
||||
return Py::Object(new Base::QuantityPy(new Base::Quantity(getFemMeshPtr()->getVolume())));
|
||||
return Py::asObject(new Base::QuantityPy(new Base::Quantity(getFemMeshPtr()->getVolume())));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user