forked from bartvdbraak/blender
Bugfix
OSX 10.5 PPC kept crashing on exit. After blaming bad compiles, bad python libs and all other reasons (almost was switching to linux!) brecht found the bad line in python free code. There was code freeing stuff whilst it wasnt allowed to. Mac PPC gets hug!
This commit is contained in:
parent
01ea2175db
commit
5abb38e566
@ -370,9 +370,10 @@ static long pyrna_struct_hash( BPy_StructRNA *self )
|
||||
static void pyrna_struct_dealloc( BPy_StructRNA *self )
|
||||
{
|
||||
if (self->freeptr && self->ptr.data) {
|
||||
IDP_FreeProperty(self->ptr.data);
|
||||
|
||||
if (self->ptr.type != &RNA_Context)
|
||||
{
|
||||
IDP_FreeProperty(self->ptr.data);
|
||||
MEM_freeN(self->ptr.data);
|
||||
self->ptr.data= NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user