From 61931df50a742e0e1543d41f65ece49b80215f06 Mon Sep 17 00:00:00 2001 From: abn Date: Fri, 14 Sep 2018 15:26:38 +0200 Subject: [PATCH] [backport] minor bug fix --- 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 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(); -- 2.39.2