Salome HOME
Bug fix in getFieldAtLevel for integer fields.
authorabn <adrien.bruneton@cea.fr>
Tue, 17 Feb 2015 11:19:35 +0000 (12:19 +0100)
committerabn <adrien.bruneton@cea.fr>
Tue, 17 Feb 2015 11:19:35 +0000 (12:19 +0100)
src/MEDLoader/MEDFileField.cxx

index c1eb535d754cb8df9c85d1cac42d882394513e6e..eaa25bd801cbd70739488debd080b8b08ce453db 100644 (file)
@@ -6743,6 +6743,7 @@ MEDCouplingFieldDouble *MEDFileIntField1TS::getFieldAtLevel(TypeOfField type, in
   if(!arrOutC)
     throw INTERP_KERNEL::Exception("MEDFileIntField1TS::getFieldAtLevelOld : mismatch between dataArrays type and MEDFileIntField1TS ! Expected int32 !");
   arrOut=arrOutC;
+  arrOut->incrRef();  // arrOut2 dies at the end of the func
   return ret.retn();
 }