mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
bullet: Plug memory leaks
Signed-off-by: deflected <deflected@github>
This commit is contained in:
parent
ad04a4b026
commit
bffe3bf55a
@ -18,7 +18,7 @@ INLINE BulletHeightfieldShape::
|
||||
~BulletHeightfieldShape() {
|
||||
|
||||
delete _shape;
|
||||
delete _data;
|
||||
delete [] _data;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -134,6 +134,8 @@ add_geom(const Geom *geom, bool remove_duplicate_vertices, const TransformState
|
||||
_mesh->addTriangle(v0, v1, v2, remove_duplicate_vertices);
|
||||
}
|
||||
}
|
||||
|
||||
delete [] vertices;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -163,6 +165,8 @@ add_array(const PTA_LVecBase3 &points, const PTA_int &indices, bool remove_dupli
|
||||
|
||||
_mesh->addTriangle(v0, v1, v2, remove_duplicate_vertices);
|
||||
}
|
||||
|
||||
delete [] vertices;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user