Fix various Py::Object leak
This commit is contained in:
@@ -200,7 +200,7 @@ Py::Tuple SketchPy::getGeometries(void) const
|
||||
|
||||
Py::Object SketchPy::getShape(void) const
|
||||
{
|
||||
return Py::Object(new TopoShapePy(new TopoShape(getSketchPtr()->toShape())));
|
||||
return Py::asObject(new TopoShapePy(new TopoShape(getSketchPtr()->toShape())));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user