fix(core): no need to call zip_discard, it's handled in zip_close

pull/282/head
Ludovic Marcotte 2020-06-19 11:37:36 -04:00
parent 67f5e5e490
commit 1389dcfe6b
1 changed files with 0 additions and 1 deletions

View File

@ -107,7 +107,6 @@
if (self->z != NULL) {
if (zip_close(self->z) != 0) {
NSLog(@"Failed to close zip archive: %@", [NSString stringWithCString: zip_strerror(self->z)]);
zip_discard(self->z);
success = NO;
}
self->z = NULL;