Path.Area: return Py_None with ref counting
This commit is contained in:
committed by
Yorik van Havre
parent
c9be3b3676
commit
2bda3a3207
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user