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:
@@ -116,8 +116,8 @@ static PyObject *make_ffmpeg_info(void)
|
||||
|
||||
#undef FFMPEG_LIB_VERSION
|
||||
|
||||
if (PyErr_Occurred()) {
|
||||
Py_CLEAR(ffmpeg_info);
|
||||
if (UNLIKELY(PyErr_Occurred())) {
|
||||
Py_DECREF(ffmpeg_info);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user