]> Creatis software - gdcm.git/commitdiff
Delete() should avoid memory leaks
authorjpr <jpr>
Fri, 18 Nov 2005 10:31:22 +0000 (10:31 +0000)
committerjpr <jpr>
Fri, 18 Nov 2005 10:31:22 +0000 (10:31 +0000)
Testing/TestValidate.cxx

index 1460329a1ec27ab91dd1fc2e376be518c2fdaa04..449a2a5b547e4513589777c8c4e21beb808f41f8 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestValidate.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/17 17:44:25 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2005/11/18 10:31:22 $
+  Version:   $Revision: 1.8 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -33,6 +33,7 @@ int Validate(std::string const &filename)
    input->Load();
    gdcm::Validator *v = new gdcm::Validator();
    v->SetInput( input );
+   input->Delete();
    return 1; // allways true (we don't want to break the test suite)
 }