mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 01:32:05 +05:00
remove memory leaks uninitalised memory read, etc...
noticed with Rational Purify on Windows
This commit is contained in:
parent
93dbf2d13f
commit
7fbf4225c2
@ -452,7 +452,8 @@ bool BlocksGUI_ExplodeDlg::execute (ObjectList& objects)
|
||||
ObjectList toRemoveFromEnggine;
|
||||
ObjectList::iterator anIter;
|
||||
for (anIter = myTmpObjs.begin(); anIter != myTmpObjs.end(); ++anIter) {
|
||||
if (selected.contains(myGeomGUI->getApp()->orb()->object_to_string(*anIter)))
|
||||
CORBA::String_var objStr = myGeomGUI->getApp()->orb()->object_to_string(*anIter);
|
||||
if (selected.contains(QString(objStr.in())))
|
||||
objects.push_back(*anIter);
|
||||
else
|
||||
toRemoveFromEnggine.push_back(*anIter);
|
||||
|
@ -1358,7 +1358,8 @@ void EntityGUI_SketcherDlg::displayPreview( GEOM::GEOM_Object_ptr object,
|
||||
getDisplayer()->SetToActivate( activate );
|
||||
|
||||
// Make a reference to GEOM_Object
|
||||
getDisplayer()->SetName( myGeometryGUI->getApp()->orb()->object_to_string( object ) );
|
||||
CORBA::String_var objStr = myGeometryGUI->getApp()->orb()->object_to_string( object );
|
||||
getDisplayer()->SetName( objStr.in() );
|
||||
|
||||
// Create wire from applayed object
|
||||
TopoDS_Shape anApplyedWire, aLastSegment;
|
||||
|
Loading…
x
Reference in New Issue
Block a user