Merge pull request #17493 from Rubonnek/bullet-physics-server-leak

Fixed leak in BulletPhysicsServer
This commit is contained in:
Rémi Verschelde 2018-03-14 14:09:32 +01:00 committed by GitHub
commit ea204628ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;