do not delete the stream twice in makeZipArchive as it's already deleted by unzOpen if a problem is encountered

svn-id: r48154
This commit is contained in:
Fabio Battaglia 2010-02-28 14:33:22 +00:00
parent 2741705758
commit d1e7fcbe75

View file

@ -1458,7 +1458,6 @@ Archive *makeZipArchive(SeekableReadStream *stream) {
return 0;
unzFile zipFile = unzOpen(stream);
if (!zipFile) {
delete stream;
return 0;
}
return new ZipArchive(zipFile);