]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix memory leaks, causing appearance of deleted objects in study dump. V7_7_0b1
authorvsr <vsr@opencascade.com>
Thu, 17 Sep 2015 16:25:48 +0000 (19:25 +0300)
committervsr <vsr@opencascade.com>
Thu, 17 Sep 2015 16:25:48 +0000 (19:25 +0300)
src/GEOMGUI/GeometryGUI.cxx

index 3bfe0e5b0d31a9cb09a5946a78266d9d1356b2ef..0d3f733a6bdea793139f3782842eb58bf3cb7b6f 100644 (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 );
       }