Fixed leak in BulletPhysicsServer

(cherry picked from commit e5ae9750ed)
This commit is contained in:
Wilson E. Alvarez 2018-03-13 15:24:30 -04:00 committed by Hein-Pieter van Braam
parent 9ab9dd73b0
commit 42f351db0d
1 changed files with 3 additions and 1 deletions

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;