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

@@ -1934,7 +1934,7 @@ PyObject *PropertyLinkSubList::getPyObject(void)
#endif
for (unsigned int i = 0; i<count; i++) {
Py::Tuple tup(2);
tup[0] = Py::Object(_lValueList[i]->getPyObject());
tup[0] = Py::asObject(_lValueList[i]->getPyObject());
std::string subItem;
if (_lSubList.size() > i)
subItem = _lSubList[i];