Salome HOME
Fix for bug IPAL19437.
[modules/smesh.git] / src / SMESH_I / SMESH_Group_i.cxx
index 66113ca185f8f21543b12474e0c4e89f5c151717..9f4c705f3aadbe423ed1258ec8420e4b540d51ad 100644 (file)
@@ -80,9 +80,8 @@ SMESH_GroupOnGeom_i::SMESH_GroupOnGeom_i( PortableServer::POA_ptr thePOA, SMESH_
 SMESH_GroupBase_i::~SMESH_GroupBase_i()
 {
   MESSAGE("~SMESH_GroupBase_i; this = "<<this );
-  // akl: removeGroup() is called from SMESH_Mesh_i() destructor
-  // if ( myMeshServant )
-  //   myMeshServant->removeGroup(myLocalID);
+  if ( myMeshServant )
+    myMeshServant->removeGroup(myLocalID);
 }
 
 //=======================================================================