diff options
author | Andrea Catania <info@andreacatania.com> | 2020-08-05 13:22:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-05 13:22:42 +0200 |
commit | 8de57bde13cf48c6d5c54c717ab5c7b973915939 (patch) | |
tree | 85d3684a28f8bbc4d9bdd683a743e7771428a7a7 | |
parent | ec678c5e94ac1c91c099c15fabc398e80ede7bfe (diff) | |
parent | ac1b2da96e92261a49a0f8f7f01ebed9402cca07 (diff) |
Merge pull request #41040 from qarmin/fixes_leak_bulet
Fixes leak when creating bullet shape
-rw-r--r-- | modules/bullet/space_bullet.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/bullet/space_bullet.cpp b/modules/bullet/space_bullet.cpp index 2b60f8df36..d0515e7c97 100644 --- a/modules/bullet/space_bullet.cpp +++ b/modules/bullet/space_bullet.cpp @@ -177,6 +177,7 @@ bool BulletPhysicsDirectSpaceState::cast_motion(const RID &p_shape, const Transf bt_xform_to.getOrigin() += bt_motion; if ((bt_xform_to.getOrigin() - bt_xform_from.getOrigin()).fuzzyZero()) { + shape->destroy_bt_shape(btShape); return false; } |