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

index 1c40a2221e479afeb3a50538cad1228dbededd7c..f3a733d4e8b051026b0c123d93004e9467a1a4f9 100644 (file)
@@ -269,6 +269,8 @@ SMESH_ActorDef::SMESH_ActorDef()
   myHighlitableActor->PickableOff();
   myHighlitableActor->SetRepresentation(SMESH_DeviceActor::eWireframe);
 
+  aMatrix->Delete();
+
   myName = "";
   myIO = NULL;
 
index 2a0930b7becd627497eb7c3497a2f0b6f2080b85..c00ac938c8a0fec6786c771506a56a4c4f2386fa 100644 (file)
@@ -188,6 +188,7 @@ namespace SMESH{
                                   QObject::tr(aXmlHandler->errorProtocol()),
                                   QObject::tr("SMESH_BUT_OK"));
          }
+    delete aXmlHandler;
        }
        else {
          if (aNoAccessFiles.isEmpty())