Cleanup: replace Py_CLEAR with Py_DECREF in bpy.app modules

In this case, there is no benefit to using Py_CLEAR
as the value will never be NULL and can't be used later on.
This commit is contained in:
2021-03-04 15:46:07 +11:00
parent a40ccde405
commit 24f0807550
9 changed files with 17 additions and 17 deletions

View File

@@ -114,8 +114,8 @@ static PyObject *make_sdl_info(void)
SetObjItem(PyBool_FromLong(0));
#endif
if (PyErr_Occurred()) {
Py_CLEAR(sdl_info);
if (UNLIKELY(PyErr_Occurred())) {
Py_DECREF(sdl_info);
return NULL;
}