mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0025361: Sample "Voxel" crashes during "Demo - Collisions" demonstration
Deletion of an array was incorrect.
This commit is contained in:
parent
ac730776d8
commit
7a13ab2df1
@ -271,7 +271,7 @@ void Voxel_CollisionDetection::Clear()
|
||||
{
|
||||
if (myVoxels)
|
||||
{
|
||||
delete ((Voxel_BoolDS*)myVoxels);
|
||||
delete[] ((Voxel_BoolDS*)myVoxels);
|
||||
myVoxels = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user