1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-05 11:24:17 +03:00

0026306: Access to deleted object in ShapeFix_FixSmallSolid

Code corrected to avoid accessing element of sequence by reference after it is removed.
This commit is contained in:
abv 2015-06-03 10:01:40 +03:00
parent 7e66f8d719
commit 168bef440d

View File

@ -455,8 +455,9 @@ TopoDS_Shape ShapeFix_FixSmallSolid::Merge (
// remove the small solid
theContext->Remove (aSmallSolid);
aSmallSolids.Remove (aSolidIter);
SendWarning ( aSmallSolid, Message_Msg( "ShapeFix.FixSmallSolid.MSG1" ));
aSmallSolids.Remove (aSolidIter);
}
else
aSolidIter.Next();