]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Little memory leak suppression.
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 23 Mar 2015 13:07:21 +0000 (14:07 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 23 Mar 2015 13:07:21 +0000 (14:07 +0100)
src/Plugins/MEDReader/IO/vtkELNOMeshFilter.cxx

index 33923c17e5e9c8838271dc49926044b9ab78402d..9c99b86267c5d537a31dcf8481f513e564ed4dae 100644 (file)
@@ -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;
     }