Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-08-16 08:59:11 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-08-16 08:59:11 +0400
commit128cf1522453c8f800d31fd663ac9027f56ec151 (patch)
treede00474b0d1a1bf519525a626dd81eb73924b673 /source/blender/python
parentb1166492e2921feba2d2bd2e77ce492507600ad7 (diff)
missing args for rna funciton. comment on rna leak with type registering that I haven't been able to fix yet.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/intern/bpy_rna.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c
index ac6934a6d55..1d6728e806a 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -3085,6 +3085,16 @@ void pyrna_free_types(void)
RNA_PROP_END;
}
+/* Note! MemLeak XXX
+ *
+ * There is currently a bug where moving registering a python class does
+ * not properly manage refcounts from the python class, since the srna owns
+ * the python class this should not be so tricky but changing the references as
+ * youd expect when changing ownership crashes blender on exit so I had to comment out
+ * the decref. This is not so bad because the leak only happens when re-registering (hold F8)
+ * - Should still be fixed - Campbell
+ * */
+
PyObject *pyrna_basetype_register(PyObject *self, PyObject *py_class)
{
bContext *C= NULL;