From: eap Date: Thu, 28 Dec 2006 08:45:57 +0000 (+0000) Subject: fix memory problem X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b6f248e8a633a8baf2b3b30645fbc11ec3cc813b;p=modules%2Fsmesh.git fix memory problem --- diff --git a/src/SMDS/SMDS_VolumeTool.cxx b/src/SMDS/SMDS_VolumeTool.cxx index d2cf317a7..a881eb9ac 100644 --- a/src/SMDS/SMDS_VolumeTool.cxx +++ b/src/SMDS/SMDS_VolumeTool.cxx @@ -1276,7 +1276,7 @@ bool SMDS_VolumeTool::IsFreeFace( int faceIndex ) continue; // opposite side } // remove a volume from volNbShared map - volNbShared.erase( vNbIt ); + volNbShared.erase( vNbIt-- ); } // here volNbShared contains only volumes laying on the