21948: EDF SMESH : Memory is not freed when deleting a mesh

void SMESHDS_SubMesh::Clear()
 {
-  myElements.clear();
-  myNodes.clear();
+  clearVector( myElements );
+  clearVector( myNodes );
This commit is contained in:
eap 2012-12-14 13:17:12 +00:00
parent ee35ac825c
commit 06544a5936

View File

@ -469,8 +469,8 @@ SMESHDS_SubMeshIteratorPtr SMESHDS_SubMesh::GetSubMeshIterator() const
void SMESHDS_SubMesh::Clear()
{
myElements.clear();
myNodes.clear();
clearVector( myElements );
clearVector( myNodes );
myUnusedIdNodes = 0;
myUnusedIdElements = 0;
SMESHDS_SubMeshIteratorPtr sub = GetSubMeshIterator();