]> Creatis software - gdcm.git/commitdiff
* gdcmElementSet.cxx : Bad patch to pass the test suite. Patch because
authorregrain <regrain>
Tue, 16 Nov 2004 13:20:34 +0000 (13:20 +0000)
committerregrain <regrain>
Tue, 16 Nov 2004 13:20:34 +0000 (13:20 +0000)
     the pixel datas are deleted by the gdcmPixelData and the gdcmBonEntry
     (problem becomes when calling gdcmFile::GetImageData )

src/gdcmElementSet.cxx

index 37340268a3fe5510c328290063ee13f2c59d83b8..cfd3aad0afff45cf91405322690087465bfb9378 100644 (file)
@@ -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();