]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
To avoid memory leaks
authorouv <ouv@opencascade.com>
Thu, 3 Sep 2009 08:18:11 +0000 (08:18 +0000)
committerouv <ouv@opencascade.com>
Thu, 3 Sep 2009 08:18:11 +0000 (08:18 +0000)
src/OBJECT/SMESH_Actor.cxx
src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx

index f86a577f174698ec4295eae7e6a0be2c4548444d..4709f9357bd26325684bdbd5b79d82a0fd8f2cd8 100644 (file)
@@ -356,6 +356,8 @@ SMESH_ActorDef::SMESH_ActorDef()
   myHighlitableActor->PickableOff();
   myHighlitableActor->SetRepresentation(SMESH_DeviceActor::eWireframe);
 
+  aMatrix->Delete();
+
   myName = "";
   myIO = NULL;
 
index 50de8b76221e7167081dca22032f0f8089b0b77a..cb7b7306fa70956f5785214611a39d9d74152080 100644 (file)
@@ -186,6 +186,7 @@ namespace SMESH
                                      QObject::tr("INF_PARSE_ERROR"),
                                      QObject::tr(aXmlHandler->errorProtocol().toLatin1().data()));
          }
+    delete aXmlHandler;
        }
        else {
          if (aNoAccessFiles.isEmpty())