Salome HOME
PAL7913. free memory in the destructor
authoreap <eap@opencascade.com>
Tue, 1 Feb 2005 07:51:29 +0000 (07:51 +0000)
committereap <eap@opencascade.com>
Tue, 1 Feb 2005 07:51:29 +0000 (07:51 +0000)
src/StdMeshers/StdMeshers_Hexa_3D.cxx

index 1eea74196f8767b1d71ec5e8cace95727ea3354b..597c354049ce4488e03a2799d159c445b1b342fd 100644 (file)
@@ -90,6 +90,8 @@ StdMeshers_Hexa_3D::StdMeshers_Hexa_3D(int hypId, int studyId,
 StdMeshers_Hexa_3D::~StdMeshers_Hexa_3D()
 {
        MESSAGE("StdMeshers_Hexa_3D::~StdMeshers_Hexa_3D");
+       for (int i = 0; i < 6; i++)
+               StdMeshers_Quadrangle_2D::QuadDelete(_quads[i]);
 }
 
 //=============================================================================
@@ -169,7 +171,7 @@ bool StdMeshers_Hexa_3D::Compute(SMESH_Mesh & aMesh,
 
        // 0.  - shape and face mesh verification
        // 0.1 - shape must be a solid (or a shell) with 6 faces
-       MESSAGE("---");
+       //MESSAGE("---");
 
        vector < SMESH_subMesh * >meshFaces;
        for (TopExp_Explorer exp(aShape, TopAbs_FACE); exp.More(); exp.Next())
@@ -404,16 +406,7 @@ bool StdMeshers_Hexa_3D::Compute(SMESH_Mesh & aMesh,
  
         int nbz = _cube.quad_Y0->nbPts[0];
         if (cy0.a1 != 0.) nbz = _cube.quad_Y0->nbPts[1];
-//     int nbx = _cube.quad_Y0->nbPts[0];
-//     int nby = _cube.quad_Y0->nbPts[1];
-//     int nbz;
-//     if (cx0.a1 != 0)
-//             nbz = _cube.quad_X0->nbPts[1];
-//     else
-//             nbz = _cube.quad_X0->nbPts[0];
-       //SCRUTE(nbx);
-       //SCRUTE(nby);
-       //SCRUTE(nbz);
+
        int i1, j1, nbxyz = nbx * nby * nbz;
        Point3DStruct *np = new Point3DStruct[nbxyz];