Salome HOME
Fix crash in Filter_i::GetIDs() after Filter_i::SetMesh() function call
authorvsr <vsr@opencascade.com>
Fri, 21 Aug 2009 09:22:45 +0000 (09:22 +0000)
committervsr <vsr@opencascade.com>
Fri, 21 Aug 2009 09:22:45 +0000 (09:22 +0000)
src/SMESH_I/SMESH_Filter_i.cxx

index 933239e59e64e2eb57be57092f5ec425a7f0aaa6..c75d81e8877cc7914074b69ddfb0e9a2746406d6 100644 (file)
@@ -2099,7 +2099,7 @@ SetMesh( SMESH_Mesh_ptr theMesh )
   if(!CORBA::is_nil(myMesh))
     myMesh->Destroy();
 
-  myMesh = theMesh;
+  myMesh = SMESH_Mesh::_duplicate( theMesh );
   TPythonDump()<<this<<".SetMesh("<<theMesh<<")";
 }