From: abn Date: Fri, 14 Sep 2018 13:26:38 +0000 (+0200) Subject: [backport] minor bug fix X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=61931df50a742e0e1543d41f65ece49b80215f06;p=tools%2Fmedcoupling.git [backport] minor bug fix --- diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index 31a0d6e6d..21cbde8cd 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -6072,7 +6072,7 @@ DataArrayInt *MEDCouplingUMesh::convertDegeneratedCellsAndRemoveFlatOnes() int nbOfCells=getNumberOfCells(); MEDCouplingAutoRefCountObjectPtr ret(DataArrayInt::New()); ret->alloc(0,1); if(nbOfCells<1) - return ret; + return ret.retn(); int initMeshLgth=getMeshLength(); int *conn=_nodal_connec->getPointer(); int *index=_nodal_connec_index->getPointer();