mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-01 04:10:34 +05:00
Fixed SIGSEGV after execute python command "myStudy.Clear()"
This commit is contained in:
parent
0b3cee2341
commit
d7a541ca3d
@ -550,9 +550,14 @@ void GEOM_Engine::Close()
|
|||||||
{
|
{
|
||||||
if (_document) {
|
if (_document) {
|
||||||
//Remove all GEOM Objects associated to the document
|
//Remove all GEOM Objects associated to the document
|
||||||
|
TColStd_SequenceOfAsciiString aSeq;
|
||||||
GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient It (_objects);
|
GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient It (_objects);
|
||||||
for (; It.More(); It.Next())
|
for (; It.More(); It.Next()) {
|
||||||
_objects.UnBind(It.Key());
|
aSeq.Append(It.Key());
|
||||||
|
}
|
||||||
|
for (Standard_Integer i=1; i<=aSeq.Length(); i++) {
|
||||||
|
_objects.UnBind(aSeq.Value(i));
|
||||||
|
}
|
||||||
|
|
||||||
// Forget free labels for document
|
// Forget free labels for document
|
||||||
_freeLabels.clear();
|
_freeLabels.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user