To avoid memory leaks

This commit is contained in:
ouv 2009-09-03 08:18:11 +00:00
parent 2c26db46be
commit bcbdd40a30
2 changed files with 3 additions and 0 deletions

View File

@ -356,6 +356,8 @@ SMESH_ActorDef::SMESH_ActorDef()
myHighlitableActor->PickableOff(); myHighlitableActor->PickableOff();
myHighlitableActor->SetRepresentation(SMESH_DeviceActor::eWireframe); myHighlitableActor->SetRepresentation(SMESH_DeviceActor::eWireframe);
aMatrix->Delete();
myName = ""; myName = "";
myIO = NULL; myIO = NULL;

View File

@ -186,6 +186,7 @@ namespace SMESH
QObject::tr("INF_PARSE_ERROR"), QObject::tr("INF_PARSE_ERROR"),
QObject::tr(aXmlHandler->errorProtocol().toLatin1().data())); QObject::tr(aXmlHandler->errorProtocol().toLatin1().data()));
} }
delete aXmlHandler;
} }
else { else {
if (aNoAccessFiles.isEmpty()) if (aNoAccessFiles.isEmpty())