From: frog Date: Wed, 22 Sep 2004 21:39:42 +0000 (+0000) Subject: Reverting to previous version temporarily. Sorry ! Frog X-Git-Tag: Version0.6.bp~180 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d4c8c26d3ac4b0be1c097e8196fc00f0e5dcb05e;p=gdcm.git Reverting to previous version temporarily. Sorry ! Frog --- diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index c355fd4e..5ee4e61a 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.cxx,v $ Language: C++ - Date: $Date: 2004/09/22 21:01:55 $ - Version: $Revision: 1.87 $ + Date: $Date: 2004/09/22 21:39:42 $ + Version: $Revision: 1.88 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -192,8 +192,16 @@ gdcmDocument::gdcmDocument() */ gdcmDocument::~gdcmDocument () { - RefPubDict = 0; - RefShaDict = 0; + 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(); } //-----------------------------------------------------------------------------