summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/package.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-10-07 00:13:20 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-10-07 00:35:26 +0200
commit2d20a979dd95b082f58486da06bdb8340ceeb675 (patch)
tree5af71b437319a42ae6cfd2fb2b8dc1110d327861 /crawl-ref/source/package.h
parent4ef016b9b477eb660c79c739442367c64ecdb377 (diff)
downloadcrawl-ref-2d20a979dd95b082f58486da06bdb8340ceeb675.tar.gz
crawl-ref-2d20a979dd95b082f58486da06bdb8340ceeb675.zip
Don't leak file descriptors when trying to open a save file fails.
The save browser is likely to open many, especially if you have a lot of old saves after a compat break. Actually running out of descriptors would require a bizarre case, but a bug is a bug...
Diffstat (limited to 'crawl-ref/source/package.h')
-rw-r--r--crawl-ref/source/package.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/package.h b/crawl-ref/source/package.h
index 6a87223ebc..e6d3592810 100644
--- a/crawl-ref/source/package.h
+++ b/crawl-ref/source/package.h
@@ -96,6 +96,7 @@ private:
void fsck();
void read_directory(len_t start);
void trace_chunk(len_t start);
+ void load();
friend class chunk_writer;
friend class chunk_reader;
};