From e9c76328fb1a562e66792e4bf3bb2d8689c00565 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 8 Jun 2016 13:00:44 +0200 Subject: [PATCH] Fix a crash in PythonTask destructor --- panda/src/event/pythonTask.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panda/src/event/pythonTask.cxx b/panda/src/event/pythonTask.cxx index a5ea42c1a7..3556395c65 100644 --- a/panda/src/event/pythonTask.cxx +++ b/panda/src/event/pythonTask.cxx @@ -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);