mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 17:00:35 +05:00
Fix memory leaks, causing appearance of deleted objects in study dump.
This commit is contained in:
parent
1b44f73640
commit
f1dfa183cb
@ -898,6 +898,11 @@ void GeometryGUI::createOriginAndBaseVectors()
|
||||
GetGeomGen()->PublishInStudy( aDSStudy, SALOMEDS::SObject::_nil(), anOX, "OX" );
|
||||
GetGeomGen()->PublishInStudy( aDSStudy, SALOMEDS::SObject::_nil(), anOY, "OY" );
|
||||
GetGeomGen()->PublishInStudy( aDSStudy, SALOMEDS::SObject::_nil(), anOZ, "OZ" );
|
||||
anOrigin->UnRegister();
|
||||
anOX->UnRegister();
|
||||
anOY->UnRegister();
|
||||
anOZ->UnRegister();
|
||||
aBasicOperations->UnRegister();
|
||||
|
||||
getApp()->updateObjectBrowser( true );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user