Merge branch 'master' into blender2.8
[blender.git] / source / blender / modifiers / intern / MOD_collision.c
index d80a2121db61d50351ecf47775f2b841dbd007e9..6ec1f4d8e5c776c27450d38bdeab2bf51e2fd49f 100644 (file)
@@ -81,10 +81,7 @@ static void freeData(ModifierData *md)
                MEM_SAFE_FREE(collmd->current_xnew);
                MEM_SAFE_FREE(collmd->current_v);
 
-               if (collmd->tri) {
-                       MEM_freeN((void *)collmd->tri);
-                       collmd->tri = NULL;
-               }
+               MEM_SAFE_FREE(collmd->tri);
 
                collmd->time_x = collmd->time_xnew = -1000;
                collmd->mvert_num = 0;