Fix various Py::Object leak

This commit is contained in:
Zheng, Lei
2019-10-08 09:19:17 +08:00
committed by wwmayer
parent 78999b471b
commit 71c54272a0
24 changed files with 40 additions and 40 deletions

View File

@@ -45,7 +45,7 @@ std::string ViewProviderLinkPy::representation(void) const
}
Py::Object ViewProviderLinkPy::getDraggingPlacement() const {
return Py::Object(new Base::PlacementPy(new Base::Placement(
return Py::asObject(new Base::PlacementPy(new Base::Placement(
getViewProviderLinkPtr()->currentDraggingPlacement())));
}