X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FFindTags.cxx;h=a56ddb4a3db1f199c770727b7744e7afe353c46b;hb=91e8773acafd98b328f10715d8c8964fded57449;hp=a1b9e4f7c5f213f5dd2d725d79131a5ae7ae71c3;hpb=bc69950a406d06c50f0fb75a96572784965cb534;p=gdcm.git diff --git a/Example/FindTags.cxx b/Example/FindTags.cxx index a1b9e4f7..a56ddb4a 100644 --- a/Example/FindTags.cxx +++ b/Example/FindTags.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: FindTags.cxx,v $ Language: C++ - Date: $Date: 2005/10/18 08:35:43 $ - Version: $Revision: 1.15 $ + Date: $Date: 2005/10/25 14:52:26 $ + Version: $Revision: 1.16 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -27,7 +27,7 @@ int main(int argc, char *argv[]) std::string fileName; gdcm::FileHelper *h; - gdcm::File *f = new gdcm::File(); + gdcm::File *f = gdcm::File::New(); if(argc > 1 ) @@ -42,7 +42,7 @@ int main(int argc, char *argv[]) f->Load(); // Should test if it worked ! - h = new gdcm::FileHelper(f); + h = gdcm::FileHelper::New(f); std::string ManufacturerName="SIEMENS "; std::string RecCode="ACR-NEMA 2.0"; @@ -113,6 +113,9 @@ int main(int argc, char *argv[]) std::cout << "----------------apres Write---------------------" << std::endl; + h->Delete(); + f->Delete(); + return 0; }