You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When unzipping large archives, the footprint of -[ZipArchive
UnzipFileTo:overwrite:] can become very large, because there are autoreleased
objects created for each individual file during the unzip. These don't get
released until after the call returns, when the autorelease pool is next
drained.
To fix the problem, add another pool inside the do{}while in -[ZipArchive
UnzipFileTo:overwrite:] :
do{
NSAutoreleasePool *internalPool = [[NSAutoreleasePool alloc] init];
if( [_password length]==0 )
...
ret = unzGoToNextFile( _unzFile );
[internalPool drain];
}while( ret==UNZ_OK && UNZ_OK!=UNZ_END_OF_LIST_OF_FILE );
Original issue reported on code.google.com by ja...@th.ingsmadeoutofotherthin.gs on 14 Feb 2011 at 3:40
The text was updated successfully, but these errors were encountered:
Has this fix been rolled into the source? If not, any chance I can get this
fix? We are running into this ourselves and this fix would help us greatly.
Thanks!
Original comment by grum...@gmail.com on 28 Feb 2011 at 12:37
Original issue reported on code.google.com by
ja...@th.ingsmadeoutofotherthin.gs
on 14 Feb 2011 at 3:40The text was updated successfully, but these errors were encountered: