mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
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:
parent
adab833f26
commit
52b6bfaabb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user