[Bf-committers] Mathutils memory leak.

Ken Hughes khughes at pacific.edu
Tue Sep 13 19:50:03 CEST 2005


Stephen Swaney wrote:
> On Tue, Sep 13, 2005 at 10:12:50AM +1000, Campbell Barton wrote:
> 
>>Hey Stivs, just tested.
>>Creating/Dealloc/Copying Vectors is fine. But Matrix still has a problem.
>>The example below well keep leaking memory until blender crashes.
>>___
>>
>>from Blender.Mathutils import Matrix
>>for x in range(10000000):
>> m = Matrix()
> 
> 
> It figures!  I looked at the patch, ran a test with Vector and slammed
> it in.  Bah!  I will reopen the bug.  Thanks, Cam!
> 

Uploaded a patch for matrix.c; above script doesn't leak memory anymore 
but hope someone who really uses matrix code can test more thoroughly.

Ken


More information about the Bf-committers mailing list