Fix various Py::Object leak
This commit is contained in:
@@ -244,7 +244,7 @@ PyObject* CommandPy::setFromGCode(PyObject *args)
|
||||
|
||||
Py::Object CommandPy::getPlacement(void) const
|
||||
{
|
||||
return Py::Object(new Base::PlacementPy(new Base::Placement(getCommandPtr()->getPlacement())));
|
||||
return Py::asObject(new Base::PlacementPy(new Base::Placement(getCommandPtr()->getPlacement())));
|
||||
}
|
||||
|
||||
void CommandPy::setPlacement(Py::Object arg)
|
||||
|
||||
Reference in New Issue
Block a user