From e5ae9750ed011c545cf2c002159f5095a9592e7c Mon Sep 17 00:00:00 2001 From: "Wilson E. Alvarez" Date: Tue, 13 Mar 2018 15:24:30 -0400 Subject: Fixed leak in BulletPhysicsServer --- modules/bullet/bullet_physics_server.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3