diff options
author | Fabio Battaglia | 2010-02-28 14:33:22 +0000 |
---|---|---|
committer | Fabio Battaglia | 2010-02-28 14:33:22 +0000 |
commit | d1e7fcbe757555b2d19684e378625ec6bb34afb9 (patch) | |
tree | 6760d5ba7557e4addd7b2e00b28f270c9e0849c0 /common | |
parent | 2741705758a6ec8f185657bf739da410dc789817 (diff) | |
download | scummvm-rg350-d1e7fcbe757555b2d19684e378625ec6bb34afb9.tar.gz scummvm-rg350-d1e7fcbe757555b2d19684e378625ec6bb34afb9.tar.bz2 scummvm-rg350-d1e7fcbe757555b2d19684e378625ec6bb34afb9.zip |
do not delete the stream twice in makeZipArchive as it's already deleted by unzOpen if a problem is encountered
svn-id: r48154
Diffstat (limited to 'common')
-rw-r--r-- | common/unzip.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/common/unzip.cpp b/common/unzip.cpp index 1db260d246..9f90c9d417 100644 --- a/common/unzip.cpp +++ b/common/unzip.cpp @@ -1458,7 +1458,6 @@ Archive *makeZipArchive(SeekableReadStream *stream) { return 0; unzFile zipFile = unzOpen(stream); if (!zipFile) { - delete stream; return 0; } return new ZipArchive(zipFile); |