From f8edb512e6bee4bc4371638843cf9843eaab7e09 Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 3 Sep 2009 08:17:47 +0000 Subject: [PATCH] To avoid memory leaks --- src/OBJECT/SMESH_Actor.cxx | 2 ++ src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx | 1 + 2 files changed, 3 insertions(+) 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()) -- 2.39.2