]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Quick and dirty fix for name on nodes management agy/part_load_coords
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 12 Nov 2020 13:59:51 +0000 (14:59 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 12 Nov 2020 13:59:51 +0000 (14:59 +0100)
src/MEDLoader/MEDFileMeshLL.cxx

index cb771459ddf5dfb31a413b055b6793b32fd8286f..3e476b2b969e0bb439fa5b2d6ca59e720a4010e7 100644 (file)
@@ -774,6 +774,7 @@ void MEDFileUMeshL2::loadPartCoordsSlice(med_idt fid, const std::vector<std::str
   if(nameCoords[0].isNotNull())
   {
     std::vector< MCAuto<DataArrayChar> > nameCoords2(nameCoords.begin(),nameCoords.end());
+    std::for_each(nameCoords2.begin(),nameCoords2.end(),[](MCAuto<DataArrayChar>& elt){ elt->incrRef(); });
     MCAuto<DataArrayChar> tmp( DataArrayChar::Aggregate(ToConstVect<DataArrayChar>(nameCoords2)) );
     _name_coords = DynamicCastSafe<DataArrayChar,DataArrayAsciiChar>( tmp );
   }