0025361: Sample "Voxel" crashes during "Demo - Collisions" demonstration
[occt.git] / src / Voxel / Voxel_CollisionDetection.cxx
index 884bb76..bb974b3 100644 (file)
@@ -271,7 +271,7 @@ void Voxel_CollisionDetection::Clear()
 {
   if (myVoxels)
   {
-    delete ((Voxel_BoolDS*)myVoxels);
+    delete[] ((Voxel_BoolDS*)myVoxels);
     myVoxels = 0;
   }
 }