diff --git a/src/ale.cpp b/src/ale.cpp index 8c930e30ca46406460d7ac4ac7ebd6258d4dbbce..c0dd3af929f592acbe411f13f94922347616b33c 100644 --- a/src/ale.cpp +++ b/src/ale.cpp @@ -341,7 +341,6 @@ namespace ale { // Call the function with the arguments. PyObject* pResult = PyObject_CallObject(pFunc, pArgs); Py_DECREF(pArgs); - Py_DECREF(pFunc); Py_DECREF(pString); if(!pResult) { throw invalid_argument(getPyTraceback());