diff options
author | Ton Roosendaal <ton@blender.org> | 2010-01-29 17:13:40 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-01-29 17:13:40 +0300 |
commit | 5abb38e566774054f586fd4ac6a1d42c951d3213 (patch) | |
tree | fea9ab36678a5933842357d4cd01438c3d5c3ed0 /source/blender/python/intern/bpy_rna.c | |
parent | 01ea2175db20e5b2040b427217d8b11bb8b31b09 (diff) |
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!
Diffstat (limited to 'source/blender/python/intern/bpy_rna.c')
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index 31b9855700e..9e34da1dde7 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -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; } |