From: eap Date: Fri, 14 Dec 2012 10:30:06 +0000 (+0000) Subject: 21948: EDF SMESH : Memory is not freed when deleting a mesh X-Git-Tag: B4NGCMakeInt~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c1dca90a35d833b0673c51988f9c796f6dd628e1;p=modules%2Fkernel.git 21948: EDF SMESH : Memory is not freed when deleting a mesh - delete c; - delete buffer; + delete [] c; + delete [] buffer; --- diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_AttributeParameter.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_AttributeParameter.cxx index 97584c9fa..f8afa49dc 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_AttributeParameter.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_AttributeParameter.cxx @@ -49,8 +49,8 @@ std::string convertString(const std::string& S) } std::string RS(buffer); - delete c; - delete buffer; + delete [] c; + delete [] buffer; return RS; } @@ -70,8 +70,8 @@ std::string restoreString(const std::string& S) } std::string RS(buffer); - delete c; - delete buffer; + delete [] c; + delete [] buffer; return RS; }