From 11e1059f3e37c768ab15a2a0da1dd4509bfdab4f Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 14 Dec 2012 13:35:19 +0000 Subject: [PATCH] 21948: EDF SMESH : Memory is not freed when deleting a mesh + static void ForgetAllData( SMESH_Mesh_i* mesh ); --- src/SMESH_I/SMESH_PreMeshInfo.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.30.2