Salome HOME
projects
/
modules
/
med.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e210e7f
)
Bug fix in getFieldAtLevel for integer fields.
author
abn
<adrien.bruneton@cea.fr>
Tue, 17 Feb 2015 11:19:35 +0000
(12:19 +0100)
committer
abn
<adrien.bruneton@cea.fr>
Tue, 17 Feb 2015 11:19:35 +0000
(12:19 +0100)
src/MEDLoader/MEDFileField.cxx
patch
|
blob
|
history
diff --git
a/src/MEDLoader/MEDFileField.cxx
b/src/MEDLoader/MEDFileField.cxx
index c1eb535d754cb8df9c85d1cac42d882394513e6e..eaa25bd801cbd70739488debd080b8b08ce453db 100644
(file)
--- 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();
}