diff options
author | Campbell Barton <campbell@blender.org> | 2022-08-11 03:50:51 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-08-11 03:57:14 +0300 |
commit | d9c2922a14585ed3c83f98617f4023a3b212683b (patch) | |
tree | adaa606f655431b77ba2195d18716696821cc79b /source/blender/modifiers/intern | |
parent | 4641d6d7b0199b9df765141e00af4ce86155de82 (diff) |
Cleanup: remove redundant MEM_SAFE_FREE
MEM_SAFE_FREE isn't necessary when the memory is known to be allocated
and clearing the value afterwards isn't necessary.
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r-- | source/blender/modifiers/intern/MOD_surfacedeform.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_surfacedeform.c b/source/blender/modifiers/intern/MOD_surfacedeform.c index ad19ecf5720..942598eb04d 100644 --- a/source/blender/modifiers/intern/MOD_surfacedeform.c +++ b/source/blender/modifiers/intern/MOD_surfacedeform.c @@ -215,8 +215,7 @@ static void freeData(ModifierData *md) MEM_SAFE_FREE(smd->verts[i].binds[j].vert_inds); MEM_SAFE_FREE(smd->verts[i].binds[j].vert_weights); } - - MEM_SAFE_FREE(smd->verts[i].binds); + MEM_freeN(smd->verts[i].binds); } } |