]> Creatis software - gdcm.git/blobdiff - vtk/vtkGdcmReader.cxx
EMH: *Add PrintAllDocument, dog slow right now
[gdcm.git] / vtk / vtkGdcmReader.cxx
index e07a5a407ac56c7fce2398044b020c6b47ef1979..11d9f68076f835e9ec4a2a770822ae1ffe973d20 100644 (file)
@@ -58,7 +58,7 @@
 #include <vtkPointData.h>
 #include <vtkLookupTable.h>
 
-vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.45 $");
+vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.46 $");
 vtkStandardNewMacro(vtkGdcmReader);
 
 //-----------------------------------------------------------------------------
@@ -688,7 +688,7 @@ size_t vtkGdcmReader::LoadImageInMemory(
 //   fclose(f2); 
    
    //GetImageData allocate a (void*)malloc, remove it:
-   free(pSource);
+   delete[] pSource;
    return size;
 }