[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26396] trunk/blender/source/blender/ python/intern/bpy_rna.c: Bugfix

Campbell Barton ideasman42 at gmail.com
Fri Jan 29 15:28:01 CET 2010


likely this doesn't fix the real problem.
The only place where  pyrna-> freeptr is enabled is is getting an
operators rna from python which is only used for extracting info for
documentation. which I doubt is even called.

On Fri, Jan 29, 2010 at 3:13 PM, Ton Roosendaal <ton at blender.org> wrote:
> Revision: 26396
>          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26396
> Author:   ton
> Date:     2010-01-29 15:13:40 +0100 (Fri, 29 Jan 2010)
>
> Log Message:
> -----------
> 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!
>
> Modified Paths:
> --------------
>    trunk/blender/source/blender/python/intern/bpy_rna.c
>
> Modified: trunk/blender/source/blender/python/intern/bpy_rna.c
> ===================================================================
> --- trunk/blender/source/blender/python/intern/bpy_rna.c        2010-01-29 13:06:50 UTC (rev 26395)
> +++ trunk/blender/source/blender/python/intern/bpy_rna.c        2010-01-29 14:13:40 UTC (rev 26396)
> @@ -370,9 +370,10 @@
>  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;
>                }
>
>
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>



-- 
- Campbell


More information about the Bf-committers mailing list