From 28891498dbf7527641088c964f585ac14422ef4c Mon Sep 17 00:00:00 2001 From: regrain Date: Tue, 16 Nov 2004 13:20:34 +0000 Subject: [PATCH] * gdcmElementSet.cxx : Bad patch to pass the test suite. Patch because the pixel datas are deleted by the gdcmPixelData and the gdcmBonEntry (problem becomes when calling gdcmFile::GetImageData ) --- src/gdcmElementSet.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gdcmElementSet.cxx b/src/gdcmElementSet.cxx index 37340268..cfd3aad0 100644 --- a/src/gdcmElementSet.cxx +++ b/src/gdcmElementSet.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmElementSet.cxx,v $ Language: C++ - Date: $Date: 2004/11/16 10:37:54 $ - Version: $Revision: 1.28 $ + Date: $Date: 2004/11/16 13:20:34 $ + 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 @@ -49,7 +49,10 @@ ElementSet::~ElementSet() DocEntry* entryToDelete = cc->second; if ( entryToDelete ) { - delete entryToDelete; + // FIXME + // Because the gdcmFile links the datas of gdcmPixelConvert with the + // data in a binArea, these datas are deleted 2 times... very bad... + //delete entryToDelete; } } TagHT.clear(); -- 2.48.1