From: abn Date: Fri, 14 Sep 2018 13:25:14 +0000 (+0200) Subject: Minor bug fix : convertDegeneratedCellsAndRemoveFlatOnes() X-Git-Tag: V9_2_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=053b633ceb7a322adca750e40c6341f8d9da5c9b;p=tools%2Fmedcoupling.git Minor bug fix : convertDegeneratedCellsAndRemoveFlatOnes() --- diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index 234d34e9e..1d8ba5b2b 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -4688,7 +4688,7 @@ DataArrayInt *MEDCouplingUMesh::convertDegeneratedCellsAndRemoveFlatOnes() int nbOfCells=getNumberOfCells(); MCAuto ret(DataArrayInt::New()); ret->alloc(0,1); if(nbOfCells<1) - return ret; + return ret.retn(); int initMeshLgth=getNodalConnectivityArrayLen(); int *conn=_nodal_connec->getPointer(); int *index=_nodal_connec_index->getPointer();