[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/source/blender/python/api2_2x Mesh.c

Martin Poirier theeth at yahoo.com
Tue Jun 6 19:24:55 CEST 2006


This leaks memory.

Tuple access gives borrowed references while sequence
access gives new references.

You need to decref the items after use and make sure
the error code also decref if needed.

Note to all BPY Coders: Be very careful about ref
counting, always check the Python/C docs to make sure
you really know what kind of references you're
getting.

Martin

--- Campbell Barton <cbarton at metavr.com> wrote:

> campbellbarton (Campbell Barton) 2006/06/06 19:04:00
> CEST
> 
>   Modified files:
>     blender/source/blender/python/api2_2x Mesh.c 
>   
>   Log:
>   made it so a meshes uvsel could be set with any
> sequence, not just a tuple.
>   
>   Revision  Changes    Path
>   1.58      +3 -3     
> blender/source/blender/python/api2_2x/Mesh.c
>    
>
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Mesh.c.diff?r1=1.57&r2=1.58&cvsroot=bf-blender>
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at projects.blender.org
>
http://projects.blender.org/mailman/listinfo/bf-blender-cvs
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Bf-committers mailing list