From: Anthony Geay Date: Mon, 23 Mar 2015 13:07:21 +0000 (+0100) Subject: Little memory leak suppression. X-Git-Tag: V7_6_0a1~2^2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=71b280b5ecbfc77bb5c12f8dd4e4ffa525e70ee4;p=modules%2Fparavis.git Little memory leak suppression. --- diff --git a/src/Plugins/MEDReader/IO/vtkELNOMeshFilter.cxx b/src/Plugins/MEDReader/IO/vtkELNOMeshFilter.cxx index 33923c17..9c99b862 100644 --- a/src/Plugins/MEDReader/IO/vtkELNOMeshFilter.cxx +++ b/src/Plugins/MEDReader/IO/vtkELNOMeshFilter.cxx @@ -117,7 +117,10 @@ int vtkELNOMeshFilter::RequestData(vtkInformation *request, key->GetRange(data->GetInformation(),dict,0,0,dictSize); } if(data == NULL) - continue; + { + delete [] dict; + continue; + } vtkInformation *info(data->GetInformation()); const char *arrayOffsetName(info->Get(vtkQuadratureSchemeDefinition::QUADRATURE_OFFSET_ARRAY_NAME())); @@ -139,6 +142,7 @@ int vtkELNOMeshFilter::RequestData(vtkInformation *request, usgOut->GetPointData()->AddArray(data); else shrinked->GetFieldData()->AddArray(data); + delete [] dict; continue; } else @@ -192,7 +196,10 @@ int vtkELNOMeshFilter::RequestData(vtkInformation *request, } } else - continue ; + { + delete [] dict; + continue ; + } } delete [] dict; }