Merge pull request #17493 from Rubonnek/bullet-physics-server-leak
Fixed leak in BulletPhysicsServer
This commit is contained in:
commit
ea204628ad
1 changed files with 3 additions and 1 deletions
|
@ -89,7 +89,9 @@ BulletPhysicsServer::BulletPhysicsServer() :
|
|||
active(true),
|
||||
active_spaces_count(0) {}
|
||||
|
||||
BulletPhysicsServer::~BulletPhysicsServer() {}
|
||||
BulletPhysicsServer::~BulletPhysicsServer() {
|
||||
bulletdelete(emptyShape);
|
||||
}
|
||||
|
||||
RID BulletPhysicsServer::shape_create(ShapeType p_shape) {
|
||||
ShapeBullet *shape = NULL;
|
||||
|
|
Loading…
Reference in a new issue