From: abn Date: Tue, 17 Feb 2015 11:19:35 +0000 (+0100) Subject: Bug fix in getFieldAtLevel for integer fields. X-Git-Tag: V7_6_0a1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f5c074ec6491a737ba77fc51ed9b3122da9af828;p=modules%2Fmed.git Bug fix in getFieldAtLevel for integer fields. --- diff --git a/src/MEDLoader/MEDFileField.cxx b/src/MEDLoader/MEDFileField.cxx index c1eb535d7..eaa25bd80 100644 --- a/src/MEDLoader/MEDFileField.cxx +++ b/src/MEDLoader/MEDFileField.cxx @@ -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(); }