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

-      QString IOR = app->orb()->object_to_string( theObject );
+      CORBA::String_var ior = app->orb()->object_to_string( theObject );
This commit is contained in:
eap 2013-07-24 12:42:52 +00:00
parent adab833f26
commit 52b6bfaabb

View File

@ -215,10 +215,10 @@ namespace SMESH
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>
(SUIT_Session::session()->activeApplication());
if ( app ) {
QString IOR = app->orb()->object_to_string( theObject );
CORBA::String_var ior = app->orb()->object_to_string( theObject );
SalomeApp_Study* study = dynamic_cast<SalomeApp_Study*>( app->activeStudy() );
if ( study && !IOR.isEmpty() )
res = study->studyDS()->FindObjectIOR( IOR.toLatin1().constData() );
if ( study && strlen( ior ) > 0 )
res = study->studyDS()->FindObjectIOR( ior.in() );
}
return res;
}