X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmDicomDirObject.cxx;h=1625584cb2670c6542cd653c781ead5035d3137b;hb=4f3b36b1db085e9be749d2cababa274d1e76b68d;hp=e53002695e95d7ada673d7a48a5d0cdaa6d6e435;hpb=bc69950a406d06c50f0fb75a96572784965cb534;p=gdcm.git diff --git a/src/gdcmDicomDirObject.cxx b/src/gdcmDicomDirObject.cxx index e5300269..1625584c 100644 --- a/src/gdcmDicomDirObject.cxx +++ b/src/gdcmDicomDirObject.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirObject.cxx,v $ Language: C++ - Date: $Date: 2005/10/18 08:35:49 $ - Version: $Revision: 1.21 $ + Date: $Date: 2005/10/25 09:22:15 $ + Version: $Revision: 1.23 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -67,13 +67,14 @@ void DicomDirObject::FillObject(ListDicomDirMetaElem const &elemList) tmpGr = it->Group; tmpEl = it->Elem; dictEntry = Global::GetDicts()->GetDefaultPubDict()->GetEntry(tmpGr,tmpEl); - entry = new DataEntry(dictEntry); + entry = DataEntry::New(dictEntry); entry->SetOffset(0); // just to avoid further missprinting entry->SetString(it->Value); AddEntry(entry); - } -} + entry->Delete(); + } +} //----------------------------------------------------------------------------- // Private