X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmBinEntry.cxx;h=47af8c38888458dcebd528afb2c88285982be9e6;hb=692f863c018c259a380e664d3608a46ec0c8bb3e;hp=092c1ee18cd14d6407e7b2cb12ad41f4b354a441;hpb=7eb058ef98b0003b379bf0db33e5c4c673b7f1e6;p=gdcm.git diff --git a/src/gdcmBinEntry.cxx b/src/gdcmBinEntry.cxx index 092c1ee1..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/20 18:14:23 $ - Version: $Revision: 1.28 $ + 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; }