Fixed warnings from Xcode Analyzer

This commit is contained in:
Mr. Fahrenheit
2014-04-06 19:42:33 +08:00
committed by Erickson Pacioles
parent b4c9bde3fb
commit 1b2ec1a9ec
2 changed files with 5 additions and 0 deletions

View File

@@ -233,6 +233,10 @@
// Unable to set the permissions attribute
NSLog(@"[SSZipArchive] Failed to set attributes - whilst setting permissions");
}
#if !__has_feature(objc_arc)
[attrs release];
#endif
}
}
}

View File

@@ -1514,6 +1514,7 @@ extern int ZEXPORT unzOpenCurrentFile3 (unzFile file, int* method,
pfile_in_zip_read_info->size_local_extrafield = size_local_extrafield;
pfile_in_zip_read_info->pos_local_extrafield=0;
pfile_in_zip_read_info->raw=raw;
pfile_in_zip_read_info->byte_before_the_zipfile = 0;
if (pfile_in_zip_read_info->read_buffer==NULL)
{