]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
[backport] minor bug fix
authorabn <adrien.bruneton@cea.fr>
Fri, 14 Sep 2018 13:26:38 +0000 (15:26 +0200)
committerabn <adrien.bruneton@cea.fr>
Fri, 14 Sep 2018 13:26:38 +0000 (15:26 +0200)
src/MEDCoupling/MEDCouplingUMesh.cxx

index 31a0d6e6d91eb2ab229c7328d4c77d5e7441ac11..21cbde8cdbfb6e243174b5c2a7f8f679b584f1e3 100644 (file)
@@ -6072,7 +6072,7 @@ DataArrayInt *MEDCouplingUMesh::convertDegeneratedCellsAndRemoveFlatOnes()
   int nbOfCells=getNumberOfCells();
   MEDCouplingAutoRefCountObjectPtr<DataArrayInt> 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();