]> Creatis software - gdcm.git/blobdiff - Example/exGrey2RGB.cxx
* Some classes inherit now from gdcm::RefCounter
[gdcm.git] / Example / exGrey2RGB.cxx
index 768228bb42cd6b9478e0cd85c3c3812428963bde..2fba62d49b35077e058312dd16d0525c8f695a58 100644 (file)
@@ -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;
 }