From: ouv Date: Thu, 3 Sep 2009 08:17:47 +0000 (+0000) Subject: To avoid memory leaks X-Git-Tag: V4_1_0_maintainance_FINAL~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f8edb512e6bee4bc4371638843cf9843eaab7e09;p=modules%2Fsmesh.git To avoid memory leaks --- diff --git a/src/OBJECT/SMESH_Actor.cxx b/src/OBJECT/SMESH_Actor.cxx index 1c40a2221..f3a733d4e 100644 --- a/src/OBJECT/SMESH_Actor.cxx +++ b/src/OBJECT/SMESH_Actor.cxx @@ -269,6 +269,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 2a0930b7b..c00ac938c 100644 --- a/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx +++ b/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx @@ -188,6 +188,7 @@ namespace SMESH{ QObject::tr(aXmlHandler->errorProtocol()), QObject::tr("SMESH_BUT_OK")); } + delete aXmlHandler; } else { if (aNoAccessFiles.isEmpty())