From d4c8c26d3ac4b0be1c097e8196fc00f0e5dcb05e Mon Sep 17 00:00:00 2001 From: frog Date: Wed, 22 Sep 2004 21:39:42 +0000 Subject: [PATCH] Reverting to previous version temporarily. Sorry ! Frog --- src/gdcmDocument.cxx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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(); } //----------------------------------------------------------------------------- -- 2.48.1