diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2014-09-01 19:25:39 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2014-09-01 19:40:47 +0900 |
commit | 1670fa27d9d5e6f0eebcc214e55262397c401c09 (patch) | |
tree | 3061398bab2820a34d1a231a4eef8d3f6ae5908a /src/lib/ephysics | |
parent | 719ecf18e85f7214d0658033b38338fac6820a65 (diff) |
ephysics - Dereference after null check - fix
fix CID 1039416
Diffstat (limited to 'src/lib/ephysics')
-rw-r--r-- | src/lib/ephysics/ephysics_body.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ephysics/ephysics_body.cpp b/src/lib/ephysics/ephysics_body.cpp index 34719383bb..c649506f7c 100644 --- a/src/lib/ephysics/ephysics_body.cpp +++ b/src/lib/ephysics/ephysics_body.cpp | |||
@@ -2972,7 +2972,7 @@ EAPI EPhysics_Body * | |||
2972 | ephysics_body_soft_box_add(EPhysics_World *world) | 2972 | ephysics_body_soft_box_add(EPhysics_World *world) |
2973 | { | 2973 | { |
2974 | EPhysics_Body *body; | 2974 | EPhysics_Body *body; |
2975 | EPhysics_Body_Face_Slice *face_slice; | 2975 | EPhysics_Body_Face_Slice *face_slice = NULL; |
2976 | btCollisionShape *shape; | 2976 | btCollisionShape *shape; |
2977 | btSoftBodyWorldInfo *world_info; | 2977 | btSoftBodyWorldInfo *world_info; |
2978 | btSoftBody *soft_body; | 2978 | btSoftBody *soft_body; |
@@ -3046,7 +3046,7 @@ ephysics_body_soft_box_add(EPhysics_World *world) | |||
3046 | 3046 | ||
3047 | no_slices: | 3047 | no_slices: |
3048 | no_face_slice: | 3048 | no_face_slice: |
3049 | _ephysics_body_face_slice_del(face_slice); | 3049 | if (face_slice) _ephysics_body_face_slice_del(face_slice); |
3050 | no_deform: | 3050 | no_deform: |
3051 | ephysics_world_body_del(world, body); | 3051 | ephysics_world_body_del(world, body); |
3052 | no_body: | 3052 | no_body: |