From 3406c4fd40fed23d938a1c72d985417ce46c3bc0 Mon Sep 17 00:00:00 2001 From: jpr Date: Fri, 18 Nov 2005 11:09:06 +0000 Subject: [PATCH] RefCounter --- Example/TestValidate.cxx | 6 +++--- Testing/TestValidate.cxx | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Example/TestValidate.cxx b/Example/TestValidate.cxx index 22d5272e..8cbd6113 100755 --- a/Example/TestValidate.cxx +++ b/Example/TestValidate.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestValidate.cxx,v $ Language: C++ - Date: $Date: 2005/11/03 16:11:54 $ - Version: $Revision: 1.2 $ + Date: $Date: 2005/11/18 11:09:06 $ + Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -32,7 +32,7 @@ int main(int argc, char *argv[]) gdcm::File *input = gdcm::File::New( ); input->SetFileName(filename); input->Load(); - gdcm::Validator *v = new gdcm::Validator(); + gdcm::Validator *v = gdcm::Validator::New(); v->SetInput( input ); return 0; diff --git a/Testing/TestValidate.cxx b/Testing/TestValidate.cxx index 449a2a5b..b74cb683 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/18 10:31:22 $ - Version: $Revision: 1.8 $ + Date: $Date: 2005/11/18 11:10:04 $ + Version: $Revision: 1.9 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -31,9 +31,10 @@ int Validate(std::string const &filename) gdcm::File *input = gdcm::File::New( ); input->SetFileName(filename); input->Load(); - gdcm::Validator *v = new gdcm::Validator(); + gdcm::Validator *v = gdcm::Validator::New(); v->SetInput( input ); input->Delete(); + v->Delete(); return 1; // allways true (we don't want to break the test suite) } -- 2.45.1