From 0e330446a29f4acbd571ffd65d0f5ed1c38f88db Mon Sep 17 00:00:00 2001 From: skv Date: Fri, 5 Feb 2016 17:03:36 +0300 Subject: [PATCH] 0053079: SALOME crashes at Python Dump --- src/GEOM/GEOM_Engine.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); + } } } } -- 2.39.2