]> Creatis software - gdcm.git/commitdiff
* Test/TestVR.cxx : fix memory leaks
authorregrain <regrain>
Fri, 28 Jan 2005 09:31:50 +0000 (09:31 +0000)
committerregrain <regrain>
Fri, 28 Jan 2005 09:31:50 +0000 (09:31 +0000)
   -- BeNours

ChangeLog
Testing/TestVR.cxx
src/gdcmDocument.cxx

index 83b400a..f596bee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2005-01-28 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
+   * Test/TestVR.cxx : fix memory leaks
+
 2005-01-27 Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
    * 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
index 1b7b047..ddcee2d 100644 (file)
@@ -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;
 }
index a847f5e..a252297 100644 (file)
@@ -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) 
    {