diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-03-14 14:09:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-14 14:09:32 +0100 |
commit | ea204628adb24bba571adaa627d38aa06425bb19 (patch) | |
tree | f7c1ef19a8c4107805fe605c24e54b82108a80ce | |
parent | a8bbb708a8751e4bcd98de9b1bb94adef5bd4a17 (diff) | |
parent | e5ae9750ed011c545cf2c002159f5095a9592e7c (diff) |
Merge pull request #17493 from Rubonnek/bullet-physics-server-leak
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; |