From: jpr Date: Fri, 18 Nov 2005 10:31:22 +0000 (+0000) Subject: Delete() should avoid memory leaks X-Git-Tag: Version1.3~73 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=38a3c00a7cd57220dc6ac9f960d36212f837032f;p=gdcm.git Delete() should avoid memory leaks --- 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) }