From: vsr Date: Thu, 17 Sep 2015 16:25:48 +0000 (+0300) Subject: Fix memory leaks, causing appearance of deleted objects in study dump. X-Git-Tag: V7_7_0b1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=354188a95a7fc79736ba1174619c32941c1e9ad6;p=modules%2Fgeom.git Fix memory leaks, causing appearance of deleted objects in study dump. --- diff --git a/src/GEOMGUI/GeometryGUI.cxx b/src/GEOMGUI/GeometryGUI.cxx index 3bfe0e5b0..0d3f733a6 100644 --- a/src/GEOMGUI/GeometryGUI.cxx +++ b/src/GEOMGUI/GeometryGUI.cxx @@ -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 ); }