summaryrefslogtreecommitdiff
path: root/ACEXML/common
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-12-29 22:46:16 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-12-29 22:46:16 +0000
commit9767925895348b848ef3855a3cda91f454149dec (patch)
tree566bd78e6330fcb8d01a2d955a942de651473b5b /ACEXML/common
parent77ceaf3ac374a0917f0fc32e937782791422b9c3 (diff)
downloadATCD-9767925895348b848ef3855a3cda91f454149dec.tar.gz
ChangeLogTag:Sun Dec 29 16:43:03 2002 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'ACEXML/common')
-rw-r--r--ACEXML/common/FileCharStream.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/ACEXML/common/FileCharStream.cpp b/ACEXML/common/FileCharStream.cpp
index a30c7003ab9..24f603c9f59 100644
--- a/ACEXML/common/FileCharStream.cpp
+++ b/ACEXML/common/FileCharStream.cpp
@@ -96,9 +96,14 @@ int
ACEXML_FileCharStream::close (void)
{
if (this->infile_ != NULL)
- ACE_OS::fclose (this->infile_);
+ {
+ ACE_OS::fclose (this->infile_);
+ this->infile_ = NULL;
+ }
delete[] this->filename_;
+ this->filename_ = 0;
delete[] this->encoding_;
+ this->encoding_ = 0;
this->size_ = 0;
this->peek_ = 0;
return 0;