From 053b633ceb7a322adca750e40c6341f8d9da5c9b Mon Sep 17 00:00:00 2001 From: abn Date: Fri, 14 Sep 2018 15:25:14 +0200 Subject: [PATCH] Minor bug fix : convertDegeneratedCellsAndRemoveFlatOnes() --- src/MEDCoupling/MEDCouplingUMesh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2