Skip to content

Commit 6bb19fc

Browse files
committed
Close the overlap file when we're done with it. Issue #896.
1 parent ec4c7b6 commit 6bb19fc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/stores/ovStoreFile.C

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,16 @@ ovFile::~ovFile() {
9292

9393
writeBuffer(true);
9494

95-
delete [] _buffer;
96-
97-
delete [] _snappyBuffer;
95+
AS_UTL_closeFile(_file);
9896

9997
if ((_isOutput) && (_histogram))
10098
_histogram->saveHistogram(_prefix);
10199

102-
delete _countsW;
103-
delete _countsR;
104-
delete _histogram;
100+
delete _countsW;
101+
delete _countsR;
102+
delete _histogram;
103+
delete [] _buffer;
104+
delete [] _snappyBuffer;
105105
}
106106

107107

0 commit comments

Comments
 (0)