diff --git a/src/App/PropertyStandard.cpp b/src/App/PropertyStandard.cpp index ac036a7aee..02245e6caa 100644 --- a/src/App/PropertyStandard.cpp +++ b/src/App/PropertyStandard.cpp @@ -1921,6 +1921,7 @@ PyObject *PropertyMap::getPyObject(void) throw Base::UnicodeError("UTF8 conversion failure at PropertyMap::getPyObject()"); } PyDict_SetItemString(dict,it->first.c_str(),item); + Py_DECREF(item); } return dict;