Program: gdcm
Module: $RCSfile: gdcmDocument.cxx,v $
Language: C++
- Date: $Date: 2005/05/18 10:12:07 $
- Version: $Revision: 1.240 $
+ Date: $Date: 2005/06/02 12:26:19 $
+ Version: $Revision: 1.242 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
/**
* \brief Constructor (not to break the API)
- * @param filename 'Document' (File or DicomDir) to be opened for parsing
+ * @param fileName 'Document' (File or DicomDir) to be opened for parsing
*/
Document::Document( std::string const &fileName )
:ElementSet(-1)
// Load will set it to true if sucessfull
IsDocumentAlreadyLoaded = false;
- Load(fileName);
+ Load(fileName);
+
+ // Normaly (?) Fp should be already deleted by CloseFile()
+ if ( Fp != 0 )
+ delete Fp;
+ Fp = 0;
}
/**
* \brief Canonical destructor.
/**
* \brief Loader
- * @param filename 'Document' (File or DicomDir) to be opened for parsing
+ * @param fileName 'Document' (File or DicomDir) to be opened for parsing
* @return false if file cannot be open or no swap info was found,
* or no tag was found.
*/