22261: EDF 2698 SMESH: Memory leak when displaying 2D quadratic elements as arcs

Fix a leak of a CORBA object
This commit is contained in:
eap 2013-07-23 14:20:46 +00:00
parent 7608df4ad1
commit d0b4e3c141

View File

@ -2235,7 +2235,7 @@ void SMESHGUI_AddInfo::meshInfo( SMESH::SMESH_Mesh_ptr mesh, QTreeWidgetItem* pa
{
// type
GEOM::GEOM_Object_var shape = mesh->GetShapeToMesh();
SMESH::MedFileInfo* inf = mesh->GetMEDFileInfo();
SMESH::MedFileInfo_var inf = mesh->GetMEDFileInfo();
QTreeWidgetItem* typeItem = createItem( parent, Bold );
typeItem->setText( 0, tr( "TYPE" ) );
if ( !CORBA::is_nil( shape ) ) {