From f7abe02b4445d133b2deab15e165ab5716fc02ae Mon Sep 17 00:00:00 2001 From: Scott R Charlton Date: Tue, 6 Dec 2011 07:30:12 +0000 Subject: [PATCH] replaced dump_file with dump_ostream git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/branches/ErrorHandling@5867 1feff8c3-07ed-0310-ac33-dd36852eb9cd --- src/IPhreeqc.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/IPhreeqc.cpp b/src/IPhreeqc.cpp index 5ad05d79..773d5728 100644 --- a/src/IPhreeqc.cpp +++ b/src/IPhreeqc.cpp @@ -1033,12 +1033,13 @@ int IPhreeqc::close_output_files(void) ret |= fclose(this->log_file); if (this->punch_file != NULL) ret |= fclose(this->punch_file); - if (this->dump_file != NULL) - ret |= fclose(this->dump_file); + if (this->dump_ostream != NULL) + delete this->dump_ostream; if (this->error_file != NULL) ret |= fclose(this->error_file); this->error_file = NULL; - this->output_file = this->log_file = this->punch_file = this->dump_file = NULL; + this->output_file = this->log_file = this->punch_file = NULL; + this->dump_ostream = NULL; return ret; }