From: Jay Freeman (saurik) Date: Mon, 21 Mar 2011 04:16:15 +0000 (-0700) Subject: Witness the return of the memory-for-stability tradeoff on 2.x. X-Git-Tag: v1.1.0%rc1~63 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/1e76e87db5964bc41362282d49cfdeb3169f7455?ds=inline Witness the return of the memory-for-stability tradeoff on 2.x. --- diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index 7cb59797..522a31fe 100644 --- a/CyteKit/WebViewController.mm +++ b/CyteKit/WebViewController.mm @@ -739,6 +739,9 @@ float CYScrollViewDecelerationRateNormal; [delegate_ retainNetworkActivityIndicator]; [self didStartLoading]; + + if (kCFCoreFoundationVersionNumber < kCFCoreFoundationVersionNumber_iPhoneOS_3_0) + [self retain]; } - (void) didFinishLoading { @@ -754,6 +757,9 @@ float CYScrollViewDecelerationRateNormal; [delegate_ releaseNetworkActivityIndicator]; [self didFinishLoading]; + + if (kCFCoreFoundationVersionNumber < kCFCoreFoundationVersionNumber_iPhoneOS_3_0) + [self autorelease]; } - (bool) isLoading {