Path.Area: return Py_None with ref counting

This commit is contained in:
Zheng, Lei
2017-04-13 11:26:22 +08:00
committed by Yorik van Havre
parent c9be3b3676
commit 2bda3a3207
2 changed files with 3 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ static PyObject * areaAbort(PyObject *, PyObject *args, PyObject *kwd) {
if (!PyArg_ParseTupleAndKeywords(args,kwd,"|O",kwlist,&pObj))
return 0;
Area::abort(PyObject_IsTrue(pObj));
Py_INCREF(Py_None);
return Py_None;
}
@@ -69,6 +70,7 @@ static PyObject * areaSetParams(PyObject *, PyObject *args, PyObject *kwd) {
PARAM_FOREACH(AREA_GET,AREA_PARAMS_STATIC_CONF)
Area::setDefaultParams(params);
Py_INCREF(Py_None);
return Py_None;
}

View File

@@ -77,6 +77,7 @@ PyObject* FeatureAreaPy::setParams(PyObject *args, PyObject *keywds)
//populate properties with the CONF variables
PARAM_FOREACH(AREA_GET,AREA_PARAMS_CONF)
Py_INCREF(Py_None);
return Py_None;
}