demo cleanup part 2 (gimpact memory leaks)

This commit is contained in:
ejcoumans
2007-12-07 01:21:37 +00:00
parent 2e4912b67a
commit e5720170f0
4 changed files with 77 additions and 263 deletions

View File

@@ -38,6 +38,8 @@ class btGImpactConvexDecompositionShape : public btGImpactCompoundShape
protected:
btAlignedObjectArray<btGImpactMeshShapePart::TrimeshPrimitiveManager> m_trimeshInterfaces;
class GIM_ConvexDecomposition* m_decomposition;
void buildConvexDecomposition(bool transformSubShapes);
public:
@@ -63,13 +65,12 @@ public:
m_trimeshInterfaces.push_back(triInterface);
}
m_decomposition = 0;
buildConvexDecomposition(children_has_transform);
}
virtual ~btGImpactConvexDecompositionShape()
{
}
virtual ~btGImpactConvexDecompositionShape();
SIMD_FORCE_INLINE btGImpactMeshShapePart::TrimeshPrimitiveManager * getTrimeshInterface(int part)
{