Fix the underlying problem from the last commit, which was worked

around incorrectly in r24435 before that. freeptr in BPy_StructRNA
was uninitialized when creating bpy.context.
This commit is contained in:
2010-01-29 14:49:21 +00:00
parent 5abb38e566
commit e28e6ac5c7
2 changed files with 5 additions and 7 deletions

View File

@@ -217,7 +217,9 @@ static void bpy_init_modules( void )
/* bpy context */
{
bpy_context_module= ( BPy_StructRNA * ) PyObject_NEW( BPy_StructRNA, &pyrna_struct_Type );
RNA_pointer_create(NULL, &RNA_Context, NULL, &bpy_context_module->ptr);
bpy_context_module->freeptr= 0;
PyModule_AddObject(mod, "context", (PyObject *)bpy_context_module);
}