X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmBinEntry.cxx;h=47af8c38888458dcebd528afb2c88285982be9e6;hb=692f863c018c259a380e664d3608a46ec0c8bb3e;hp=cee3120fdf2c134707c6ba9c6868bcd51b90c8ab;hpb=dc02ed8917f2d871c186f1789bc6bd74bfc15c3b;p=gdcm.git diff --git a/src/gdcmBinEntry.cxx b/src/gdcmBinEntry.cxx index cee3120f..47af8c38 100644 --- a/src/gdcmBinEntry.cxx +++ b/src/gdcmBinEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmBinEntry.cxx,v $ Language: C++ - Date: $Date: 2004/09/10 14:32:04 $ - Version: $Revision: 1.25 $ + 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 @@ -28,7 +28,7 @@ */ gdcmBinEntry::gdcmBinEntry(gdcmDictEntry* e) : gdcmValEntry(e) { - VoidArea = NULL; + VoidArea = 0; } /** @@ -42,7 +42,8 @@ gdcmBinEntry::gdcmBinEntry(gdcmDocEntry* e) : gdcmValEntry(e->GetDictEntry()) ImplicitVR = e->IsImplicitVR(); Offset = e->GetOffset(); PrintLevel = e->GetPrintLevel(); - SQDepthLevel = e->GetDepthLevel(); + //FIXME + //SQDepthLevel = e->GetDepthLevel(); VoidArea = 0; // let's be carefull ! } @@ -54,7 +55,7 @@ gdcmBinEntry::~gdcmBinEntry() { if (VoidArea) { - free (VoidArea); + delete[] VoidArea; VoidArea = 0; // let's be carefull ! } } @@ -119,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; }