[Bf-blender-cvs] [caf362422e4] blender-v2.93-release: Fix crash caused by exception in Python gizmo target get handler

Campbell Barton noreply at git.blender.org
Mon Jan 17 14:18:18 CET 2022


Commit: caf362422e458da5f8b9d8878167165946994fa4
Author: Campbell Barton
Date:   Fri Jan 14 10:16:02 2022 +1100
Branches: blender-v2.93-release
https://developer.blender.org/rBcaf362422e458da5f8b9d8878167165946994fa4

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 ade9516d768..8bf752e0cf1 100644
--- a/source/blender/python/intern/bpy_rna_gizmo.c
+++ b/source/blender/python/intern/bpy_rna_gizmo.c
@@ -103,7 +103,7 @@ fail:
   PyErr_Print();
   PyErr_Clear();
 
-  Py_DECREF(ret);
+  Py_XDECREF(ret);
 
   PyGILState_Release(gilstate);
 }



More information about the Bf-blender-cvs mailing list