[Bf-blender-cvs] CVS commit: blender/source/blender/python/api2_2x Mathutils.c quat.c vector.c

Stephen Swaney sswaney at swbell.net
Wed Oct 13 01:58:03 CEST 2004


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.
  
  This also clarifies the problem of who is responsible
  for freeing memory allocations.
  
  Pre-checkin files are tagged mem_leak-1 in case this
  breaks something.
  
  Revision  Changes    Path
  1.5       +117 -41   blender/source/blender/python/api2_2x/Mathutils.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Mathutils.c.diff?r1=1.4&r2=1.5&cvsroot=bf-blender>
  1.5       +44 -17    blender/source/blender/python/api2_2x/quat.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/quat.c.diff?r1=1.4&r2=1.5&cvsroot=bf-blender>
  1.15      +47 -26    blender/source/blender/python/api2_2x/vector.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/vector.c.diff?r1=1.14&r2=1.15&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list