diff options
| author | Wilson E. Alvarez | 2018-03-13 15:24:30 -0400 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-03-29 00:24:09 +0200 |
| commit | 42f351db0d315873b2b1fe34ada73126da65be3b (patch) | |
| tree | 391f5899f4040d2cdd551200e389479c562364e4 /modules/bullet/bullet_physics_server.cpp | |
| parent | 9ab9dd73b03cc457ba3e32d7497f27b383782139 (diff) | |
| download | godot-42f351db0d315873b2b1fe34ada73126da65be3b.tar.gz godot-42f351db0d315873b2b1fe34ada73126da65be3b.tar.zst godot-42f351db0d315873b2b1fe34ada73126da65be3b.zip | |
Fixed leak in BulletPhysicsServer
(cherry picked from commit e5ae9750ed011c545cf2c002159f5095a9592e7c)
Diffstat (limited to '')
| -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 c4f9f8800..2e6c885b0 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; |
