From 38a3c00a7cd57220dc6ac9f960d36212f837032f Mon Sep 17 00:00:00 2001 From: jpr Date: Fri, 18 Nov 2005 10:31:22 +0000 Subject: [PATCH] Delete() should avoid memory leaks --- Testing/TestValidate.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Testing/TestValidate.cxx b/Testing/TestValidate.cxx index 1460329a..449a2a5b 100644 --- a/Testing/TestValidate.cxx +++ b/Testing/TestValidate.cxx @@ -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) } -- 2.48.1