From: regrain Date: Fri, 28 Jan 2005 09:31:50 +0000 (+0000) Subject: * Test/TestVR.cxx : fix memory leaks X-Git-Tag: Version1.0.bp~169 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7409414e04772fdb69056cfb8066f392c08014e1;p=gdcm.git * Test/TestVR.cxx : fix memory leaks -- BeNours --- diff --git a/ChangeLog b/ChangeLog index 83b400af..f596beef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2005-01-28 Benoit Regrain + * Test/TestVR.cxx : fix memory leaks + 2005-01-27 Mathieu Malaterre * Rewrite the base 256 to base 10 conversion, using string operation only. This allos us to get rid of the problematic 64bits integer type (does not diff --git a/Testing/TestVR.cxx b/Testing/TestVR.cxx index 1b7b0472..ddcee2d3 100644 --- a/Testing/TestVR.cxx +++ b/Testing/TestVR.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestVR.cxx,v $ Language: C++ - Date: $Date: 2005/01/27 10:43:19 $ - Version: $Revision: 1.5 $ + Date: $Date: 2005/01/28 09:31:51 $ + Version: $Revision: 1.6 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -42,5 +42,6 @@ int TestVR(int , char *[]) vr->IsVROfSequence( "" ); + delete vr; return 0; } diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index a847f5e4..a252297e 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.cxx,v $ Language: C++ - Date: $Date: 2005/01/26 17:17:31 $ - Version: $Revision: 1.214 $ + Date: $Date: 2005/01/28 09:31:51 $ + Version: $Revision: 1.215 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -346,7 +346,6 @@ FileType Document::GetFileType() */ std::ifstream *Document::OpenFile() { - HasDCMPreamble = false; if (Filename.length() == 0) {