bugfix [#26454] WITH_PYTHON_SAFETY crash.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 11 Mar 2011 02:43:30 +0000 (02:43 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 11 Mar 2011 02:43:30 +0000 (02:43 +0000)
source/blender/python/intern/bpy_rna.c

index 0f452605c284e8e759266c673a10976494666360..8544a6b493e308995b5dd95aacef97890a756d95 100644 (file)
@@ -4843,6 +4843,10 @@ PyObject *pyrna_prop_collection_iter_CreatePyObject(PointerRNA *ptr, PropertyRNA
 {
        BPy_PropertyCollectionIterRNA *self= PyObject_New(BPy_PropertyCollectionIterRNA, &pyrna_prop_collection_iter_Type);
 
+#ifdef USE_WEAKREFS
+       self->in_weakreflist= NULL;
+#endif
+
        RNA_property_collection_begin(ptr, prop, &self->iter);
 
        return (PyObject *)self;