[Bf-blender-cvs] [40c5786df33] blender-v3.0-release: Fix crash caused by exception in Python gizmo target get handler

Campbell Barton noreply at git.blender.org
Mon Jan 17 13:25:34 CET 2022


Commit: 40c5786df3309b82e358cc8935fc373b56833fb4
Author: Campbell Barton
Date:   Fri Jan 14 10:16:02 2022 +1100
Branches: blender-v3.0-release
https://developer.blender.org/rB40c5786df3309b82e358cc8935fc373b56833fb4

Fix crash caused by exception in Python gizmo target get handler

===================================================================

M	source/blender/python/intern/bpy_rna_gizmo.c

===================================================================

diff --git a/source/blender/python/intern/bpy_rna_gizmo.c b/source/blender/python/intern/bpy_rna_gizmo.c
index e4fb5b33e97..e769fe7f4c2 100644
--- a/source/blender/python/intern/bpy_rna_gizmo.c
+++ b/source/blender/python/intern/bpy_rna_gizmo.c
@@ -201,7 +201,7 @@ fail:
   PyErr_Print();
   PyErr_Clear();
 
-  Py_DECREF(ret);
+  Py_XDECREF(ret);
 
   PyGILState_Release(gilstate);
 }



More information about the Bf-blender-cvs mailing list