From: eap Date: Fri, 14 Dec 2012 13:35:19 +0000 (+0000) Subject: 21948: EDF SMESH : Memory is not freed when deleting a mesh X-Git-Tag: pluginMGCleaner~254 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=11e1059f3e37c768ab15a2a0da1dd4509bfdab4f;p=modules%2Fsmesh.git 21948: EDF SMESH : Memory is not freed when deleting a mesh + static void ForgetAllData( SMESH_Mesh_i* mesh ); --- diff --git a/src/SMESH_I/SMESH_PreMeshInfo.hxx b/src/SMESH_I/SMESH_PreMeshInfo.hxx index 38b15a242..f92ce96c3 100644 --- a/src/SMESH_I/SMESH_PreMeshInfo.hxx +++ b/src/SMESH_I/SMESH_PreMeshInfo.hxx @@ -52,7 +52,7 @@ class SMESH_Mesh_i; class SMESH_PreMeshInfo : public SMDS_MeshInfo { public: - // fills SMESH_PreMeshInfo field of all objects of mesh + // fills SMESH_PreMeshInfo* field of all objects of mesh static void LoadFromFile( SMESH_Mesh_i* mesh, const int meshID, const std::string& medFile, @@ -64,6 +64,9 @@ public: const int meshID, HDFfile* hdfFile); + // remove all SMESH_PreMeshInfo fields from mesh and its child objects w/o data loading + static void ForgetAllData( SMESH_Mesh_i* mesh ); + // reads all data and remove all SMESH_PreMeshInfo fields from objects void FullLoadFromFile() const;