Fix memory leaks, causing appearance of deleted objects in study dump.

This commit is contained in:
vsr 2015-09-17 19:25:48 +03:00
parent 1b44f73640
commit f1dfa183cb

View File

@ -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 );
}