]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
22261: EDF 2698 SMESH: Memory leak when displaying 2D quadratic elements as arcs
authoreap <eap@opencascade.com>
Tue, 23 Jul 2013 14:20:46 +0000 (14:20 +0000)
committereap <eap@opencascade.com>
Tue, 23 Jul 2013 14:20:46 +0000 (14:20 +0000)
Fix a leak of a CORBA object

src/SMESHGUI/SMESHGUI_MeshInfo.cxx

index 647a6092df74105b347b87f67acdf864b1c8797f..9a701b8ec8f8c87088c371031ab3c2c2688ccda7 100644 (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 ) ) {