]> Creatis software - gdcm.git/commit
* FIX : now, the DocEntries are all deleted in the gdcmElementSet.
authorregrain <regrain>
Tue, 16 Nov 2004 16:20:22 +0000 (16:20 +0000)
committerregrain <regrain>
Tue, 16 Nov 2004 16:20:22 +0000 (16:20 +0000)
commitbac2910466f502dec4c1842527aa81a8f83f04b8
tree67f62b1a81b78b7fe224814bbf92fb3135cbdbf8
parente8439d97c8441809e9a5236e729bae1a25ffb418
   * FIX : now, the DocEntries are all deleted in the gdcmElementSet.
     Two problems appear when doing it :
      - with the gdcmFile : when the GetImageData method is called, the pixels
        are stored in the gdcmPixelConvert, but a gdcmBinEntry link to these
        datas (pixels). And each structure destruct the datas when it's
        destructed. So we have two destructions for the same datas. To solve it,
        a flag is added in the gdcmBinEntry to indicate if the BinEntry owns the
        datas or not. If it doesn't own datas, then they will not destroyed by
        the gdcmBinEntry.
      - with the gdcmDicomDir : the sequences (gdcmSQItem) contain DocEntry
        elements. The DicomDir* (DicomDirPatient, etc.) inherit from SQItem.
        Thus destruct the DicomDir* elements and the TagHT of the ElementSet
        create a double destruction of the same DocEntry's. So, to solve it,
        the TagHT is simply cleared and the DicomDir* elements are destroyed.
   * TODO : add an entry concerning memory leaks in the DicomDir
   -- BeNours
ChangeLog
TODO
src/gdcmBinEntry.cxx
src/gdcmBinEntry.h
src/gdcmDicomDir.cxx
src/gdcmDocument.cxx
src/gdcmElementSet.cxx
src/gdcmFile.cxx
src/gdcmFile.h