[Bf-blender-cvs] [78c3caf3c1b] master: Fix crash auto-completing bpy.types in the Python console

Campbell Barton noreply at git.blender.org
Mon Feb 22 12:30:42 CET 2021


Commit: 78c3caf3c1b87f449837b11c903ddeaf00afe7b9
Author: Campbell Barton
Date:   Mon Feb 22 22:26:20 2021 +1100
Branches: master
https://developer.blender.org/rB78c3caf3c1b87f449837b11c903ddeaf00afe7b9

Fix crash auto-completing bpy.types in the Python console

Reference counting error in dc61a63e3f1bb3773677fb009fd787af7bd5c727

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

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

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

diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c
index ae0d5b46458..189d8308c14 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -7729,7 +7729,7 @@ static PyObject *bpy_types_module_dir(PyObject *self)
   PyObject *key, *value;
   Py_ssize_t pos = 0;
   while (PyDict_Next(submodule_dict, &pos, &key, &value)) {
-    PyList_APPEND(ret, key);
+    PyList_Append(ret, key);
   }
   return ret;
 }



More information about the Bf-blender-cvs mailing list