From 04551b281138b8b24eed4ff07e30b46984cad9f5 Mon Sep 17 00:00:00 2001 From: Kelvin Rodriguez Date: Thu, 13 Dec 2018 17:00:01 -0700 Subject: [PATCH] removed invalid defref call --- src/ale.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ale.cpp b/src/ale.cpp index 8c930e3..c0dd3af 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()); -- GitLab