diff options
author | Wilson E. Alvarez <wilson.e.alvarez1@gmail.com> | 2018-03-13 15:24:30 -0400 |
---|---|---|
committer | Wilson E. Alvarez <wilson.e.alvarez1@gmail.com> | 2018-03-13 15:24:30 -0400 |
commit | e5ae9750ed011c545cf2c002159f5095a9592e7c (patch) | |
tree | 0f2bdb459818800805e19f0d680cebd0168c00af | |
parent | fe93459ef9ded290277dff0d29747b9336077238 (diff) |
Fixed leak in BulletPhysicsServer
-rw-r--r-- | modules/bullet/bullet_physics_server.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/bullet/bullet_physics_server.cpp b/modules/bullet/bullet_physics_server.cpp index 4a0c7499b4..6246a295ec 100644 --- a/modules/bullet/bullet_physics_server.cpp +++ b/modules/bullet/bullet_physics_server.cpp @@ -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; |