X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FexGrey2RGB.cxx;h=2fba62d49b35077e058312dd16d0525c8f695a58;hb=dec98002ab6106cd872a2c34fb3b3a6ab876a6b6;hp=768228bb42cd6b9478e0cd85c3c3812428963bde;hpb=bc69950a406d06c50f0fb75a96572784965cb534;p=gdcm.git diff --git a/Example/exGrey2RGB.cxx b/Example/exGrey2RGB.cxx index 768228bb..2fba62d4 100644 --- a/Example/exGrey2RGB.cxx +++ b/Example/exGrey2RGB.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: exGrey2RGB.cxx,v $ Language: C++ - Date: $Date: 2005/10/18 08:35:44 $ - Version: $Revision: 1.4 $ + Date: $Date: 2005/10/25 14:52:28 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -79,7 +79,7 @@ int main(int argc, char *argv[]) } } - gdcm::FileHelper *fh = new gdcm::FileHelper( ); + gdcm::FileHelper *fh = gdcm::FileHelper::New( ); fh->SetFileName( filename ); fh->Load(); @@ -119,6 +119,8 @@ int main(int argc, char *argv[]) fh->SetImageData(imageDataRGB, dataSize*3); fh->WriteDcmExplVR( output ); + fh->Delete(); + return 0; }