Fix a crash in PythonTask destructor

This commit is contained in:
rdb 2016-06-08 13:00:44 +02:00
parent d53b2ca80e
commit e9c76328fb

View File

@ -68,9 +68,9 @@ PythonTask(PyObject *function, const string &name) :
////////////////////////////////////////////////////////////////////
PythonTask::
~PythonTask() {
Py_DECREF(_function);
Py_DECREF(_args);
Py_DECREF(__dict__);
Py_XDECREF(_function);
Py_XDECREF(_args);
Py_XDECREF(__dict__);
Py_XDECREF(_generator);
Py_XDECREF(_owner);
Py_XDECREF(_upon_death);