From: caremoli Date: Mon, 14 Sep 2009 09:08:42 +0000 (+0000) Subject: CCAR: remove memory leaks in study X-Git-Tag: V5_1_3rc1~54 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d460313e0f4834c89f0e217a6975cf99a4e7bd21;p=modules%2Fkernel.git CCAR: remove memory leaks in study --- diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_AttributeIOR.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_AttributeIOR.cxx index fe83cfd63..c70ac8ed5 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_AttributeIOR.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_AttributeIOR.cxx @@ -94,6 +94,9 @@ SALOMEDSImpl_AttributeIOR::SALOMEDSImpl_AttributeIOR() { } +SALOMEDSImpl_AttributeIOR::~SALOMEDSImpl_AttributeIOR() +{} + //======================================================================= //function : ID //purpose : diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_AttributeIOR.hxx b/src/SALOMEDSImpl/SALOMEDSImpl_AttributeIOR.hxx index b0370d3f4..8ebef9533 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_AttributeIOR.hxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_AttributeIOR.hxx @@ -51,7 +51,7 @@ public: void Restore(DF_Attribute* with); DF_Attribute* NewEmpty() const; void Paste(DF_Attribute* into); - ~SALOMEDSImpl_AttributeIOR() {} + ~SALOMEDSImpl_AttributeIOR() ; }; diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx index 001e2d3fd..cef6ad2b8 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx @@ -231,6 +231,8 @@ void SALOMEDSImpl_StudyManager::Close(SALOMEDSImpl_Study* aStudy) } aStudy->Close(); + DF_Document* doc=aStudy->GetDocument(); + _appli->Close(doc); } //============================================================================