Skip to content

Commit

Permalink
Fixed leak in BulletPhysicsServer
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubonnek committed Mar 13, 2018
1 parent fe93459 commit e5ae975
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/bullet/bullet_physics_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e5ae975

Please sign in to comment.