Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b44f73
)
Fix memory leaks, causing appearance of deleted objects in study dump.
V7_7_0b1
author
vsr
<vsr@opencascade.com>
Thu, 17 Sep 2015 16:25:48 +0000
(19:25 +0300)
committer
vsr
<vsr@opencascade.com>
Thu, 17 Sep 2015 16:25:48 +0000
(19:25 +0300)
src/GEOMGUI/GeometryGUI.cxx
patch
|
blob
|
history
diff --git
a/src/GEOMGUI/GeometryGUI.cxx
b/src/GEOMGUI/GeometryGUI.cxx
index 3bfe0e5b0d31a9cb09a5946a78266d9d1356b2ef..0d3f733a6bdea793139f3782842eb58bf3cb7b6f 100644
(file)
--- 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 );
}