From f5c074ec6491a737ba77fc51ed9b3122da9af828 Mon Sep 17 00:00:00 2001 From: abn Date: Tue, 17 Feb 2015 12:19:35 +0100 Subject: [PATCH] Bug fix in getFieldAtLevel for integer fields. --- src/MEDLoader/MEDFileField.cxx | 1 + 1 file changed, 1 insertion(+) 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(); } -- 2.39.2