Skip to content

Commit

Permalink
Merge pull request godotengine#41040 from qarmin/fixes_leak_bulet
Browse files Browse the repository at this point in the history
Fixes leak when creating bullet shape
  • Loading branch information
AndreaCatania authored Aug 5, 2020
2 parents ec678c5 + ac1b2da commit 8de57bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/bullet/space_bullet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8de57bd

Please sign in to comment.