]> Creatis software - gdcm.git/blobdiff - src/gdcmBinEntry.cxx
2004-09-23 Jean-Pierre Roux
[gdcm.git] / src / gdcmBinEntry.cxx
index a010ff7217f4cd08d523ad3df22729ae78b87da2..47af8c38888458dcebd528afb2c88285982be9e6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmBinEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/13 12:10:53 $
-  Version:   $Revision: 1.26 $
+  Date:      $Date: 2004/09/23 09:40:30 $
+  Version:   $Revision: 1.29 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -55,7 +55,7 @@ gdcmBinEntry::~gdcmBinEntry()
 {
    if (VoidArea)
    {
-      free (VoidArea);
+      delete[] VoidArea;
       VoidArea = 0; // let's be carefull !
    }
 }
@@ -120,10 +120,10 @@ void gdcmBinEntry::Write(FILE *fp, FileType filetype)
 
 
 /// \brief Sets the value (non string) of the current Dicom Header Entry
-void gdcmBinEntry::SetVoidArea( void* area )  
+void gdcmBinEntry::SetVoidArea( uint8_t* area )  
 { 
    if (VoidArea)
-      free(VoidArea);
+      delete[] VoidArea;
    VoidArea = area;  
 }