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:
parent
2741705758
commit
d1e7fcbe75
1 changed files with 0 additions and 1 deletions
|
@ -1458,7 +1458,6 @@ Archive *makeZipArchive(SeekableReadStream *stream) {
|
|||
return 0;
|
||||
unzFile zipFile = unzOpen(stream);
|
||||
if (!zipFile) {
|
||||
delete stream;
|
||||
return 0;
|
||||
}
|
||||
return new ZipArchive(zipFile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue