From 23cf40db2b0e3aff19310ce2ed57f8ded44e51bf Mon Sep 17 00:00:00 2001 From: Fabio Battaglia Date: Sun, 28 Feb 2010 14:40:40 +0000 Subject: Add a comment to document my removal of stream delete in previous commit svn-id: r48155 --- common/unzip.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/unzip.cpp') diff --git a/common/unzip.cpp b/common/unzip.cpp index 9f90c9d417..a83f70d671 100644 --- a/common/unzip.cpp +++ b/common/unzip.cpp @@ -1458,6 +1458,8 @@ Archive *makeZipArchive(SeekableReadStream *stream) { return 0; unzFile zipFile = unzOpen(stream); if (!zipFile) { + // stream gets deleted by unzOpen() call if something + // goes wrong. return 0; } return new ZipArchive(zipFile); -- cgit v1.2.3