summaryrefslogtreecommitdiff
path: root/indra/llcommon/llfile.cpp
diff options
context:
space:
mode:
authorMark Palange (Mani) <palange@lindenlab.com>2010-11-18 21:57:27 -0800
committerMark Palange (Mani) <palange@lindenlab.com>2010-11-18 21:57:27 -0800
commit8c2026d6b71f133deafa6b0e19baf69632a2510a (patch)
tree580083310e6298a8b68aba59a566d18a970d6fbb /indra/llcommon/llfile.cpp
parente19ee531aedcbbe0f77a8ac11cdcda43c9c4ed84 (diff)
CHOP-135 Bug fixes.
Diffstat (limited to 'indra/llcommon/llfile.cpp')
-rw-r--r--indra/llcommon/llfile.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llcommon/llfile.cpp b/indra/llcommon/llfile.cpp
index 289ce0bc2c..8f02391e75 100644
--- a/indra/llcommon/llfile.cpp
+++ b/indra/llcommon/llfile.cpp
@@ -318,7 +318,12 @@ void llofstream::close()
if(is_open())
{
if (_Filebuffer->close() == 0)
+ {
_Myios::setstate(ios_base::failbit); /*Flawfinder: ignore*/
+ }
+ delete _Filebuffer;
+ _Filebuffer = NULL;
+ _ShouldClose = false;
}
}