moonshineTheleocat / bullet

Automatically exported from code.google.com/p/bullet
Other
0 stars 0 forks source link

Memory leaks in BulletMultiThreaded #750

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There are two issues:
1. in btParallelConstraintSolver there is memory allocated for an array for 
m_solverIO member, but it is released as a simple pointer (delete) and not as 
an array (delete []). 

2. creating collision resolving threads function 
createCollisionLocalStoreMemory is called, but equivalent 
deleteCollisionLocalStoreMemory is never called - you have to call it now 
manually

I have encountered this in Bullet version 2.80

Memory leaks found with Visual Leak Detector on Windows platform.

Original issue reported on code.google.com by egon.m...@gmail.com on 17 Oct 2013 at 6:46

GoogleCodeExporter commented 9 years ago
Valgrind reported issue number 1 as well on Linux.  I have attached a patch 
which fixes the delete mismatch.

Original comment by akei...@gmail.com on 30 Nov 2013 at 3:05

Attachments:

GoogleCodeExporter commented 9 years ago
BulletMultiTHreaded is discontinued and all new development happens in 
https://github.com/bulletphysics/bullet3

this tracker is shutting down.

Original comment by erwin.coumans on 30 Mar 2014 at 5:26