From: skv Date: Fri, 5 Feb 2016 14:03:36 +0000 (+0300) Subject: 0053079: SALOME crashes at Python Dump X-Git-Tag: V8_0_0rc1~1^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0e330446a29f4acbd571ffd65d0f5ed1c38f88db;p=modules%2Fgeom.git 0053079: SALOME crashes at Python Dump --- diff --git a/src/GEOM/GEOM_Engine.cxx b/src/GEOM/GEOM_Engine.cxx index e7921bed4..41be7c204 100644 --- a/src/GEOM/GEOM_Engine.cxx +++ b/src/GEOM/GEOM_Engine.cxx @@ -1278,7 +1278,10 @@ void FillMapOfRef(const Handle(GEOM_Function) &theFunction, const int aRefTag = GetTag(anObjEntry); - theRefMap[anObjTag].push_back(aRefTag); + if (anObjTag != aRefTag) { + // Avoid making references for operations without copy. + theRefMap[anObjTag].push_back(aRefTag); + } } } }