[Bf-committers] Re: [Bf-blender-cvs] CVS commit:
blender/source/blender/python/api2_2x Mathutils.c quat.c vector.c
joeedh
joeeagar at prodigy.net
Wed Oct 13 02:19:57 CEST 2004
Stephen Swaney wrote:
>stiv (Stephen Swaney) 2004/10/13 01:58:03 CEST
>
> Modified files:
> blender/source/blender/python/api2_2x Mathutils.c quat.c
> vector.c
>
> Log:
> fix numerous memory leaks in the math types.
> fixed bug: #1633 Memory leak in M_Mathutils_Vector
>
> The math types ( matrix, vector, quad ) now make
> copies of data passed to them rather than holding
> a pointer to memory that cannot be freed, or that
> may go away unexpectedly.
>
>
Oh, crap. I use Vector for storing the EditVert/Edge/Face coordinates
and normals since they convieniantly take pointers to arrays. Of
course, I needed to implement a similar type anyway, to faciliate error
checking, to avoid the pointer-going-away problems. . .
joeedh
More information about the Bf-committers
mailing list