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