From: ouv Date: Thu, 3 Sep 2009 08:18:11 +0000 (+0000) Subject: To avoid memory leaks X-Git-Tag: V5_1_3rc1~86 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bcbdd40a304aafd5521495fa84a3539c9353459d;p=modules%2Fsmesh.git To avoid memory leaks --- diff --git a/src/OBJECT/SMESH_Actor.cxx b/src/OBJECT/SMESH_Actor.cxx index f86a577f1..4709f9357 100644 --- a/src/OBJECT/SMESH_Actor.cxx +++ b/src/OBJECT/SMESH_Actor.cxx @@ -356,6 +356,8 @@ SMESH_ActorDef::SMESH_ActorDef() myHighlitableActor->PickableOff(); myHighlitableActor->SetRepresentation(SMESH_DeviceActor::eWireframe); + aMatrix->Delete(); + myName = ""; myIO = NULL; diff --git a/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx b/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx index 50de8b762..cb7b7306f 100644 --- a/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx +++ b/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx @@ -186,6 +186,7 @@ namespace SMESH QObject::tr("INF_PARSE_ERROR"), QObject::tr(aXmlHandler->errorProtocol().toLatin1().data())); } + delete aXmlHandler; } else { if (aNoAccessFiles.isEmpty())