+2004-09-22 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
+ * src/gdcmDocument.cxx: gdcmDocument::~gdcmDocument() doesn't clear (nor
+ clear) TagHT, which is an inherited member of gdcmElementSet. It is
+ up to the destructor of gdcmElementSet to clean up TagHt and it's
+ pointed content.
+
2004-09-21 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
* Test/CMakeLists.txt: update to follow gdcmData renamings.
* src/gdcmCommon.h, gdcmDocument.cxx: doxygen typos
Program: gdcm
Module: $RCSfile: gdcmDocument.cxx,v $
Language: C++
- Date: $Date: 2004/09/22 10:34:53 $
- Version: $Revision: 1.86 $
+ Date: $Date: 2004/09/22 21:01:55 $
+ Version: $Revision: 1.87 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
*/
gdcmDocument::~gdcmDocument ()
{
- RefPubDict = NULL;
- RefShaDict = NULL;
-
- // Recursive clean up of sequences
- for (TagDocEntryHT::const_iterator it = TagHT.begin();
- it != TagHT.end(); ++it )
- {
- //delete it->second; //temp remove
- }
- TagHT.clear();
+ RefPubDict = 0;
+ RefShaDict = 0;
}
//-----------------------------------------------------------------------------