mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-13 23:27:24 +08:00
0025361: Sample "Voxel" crashes during "Demo - Collisions" demonstration
Deletion of an array was incorrect.
This commit is contained in:
@@ -271,7 +271,7 @@ void Voxel_CollisionDetection::Clear()
|
||||
{
|
||||
if (myVoxels)
|
||||
{
|
||||
delete ((Voxel_BoolDS*)myVoxels);
|
||||
delete[] ((Voxel_BoolDS*)myVoxels);
|
||||
myVoxels = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user