From 1e76e87db5964bc41362282d49cfdeb3169f7455 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 20 Mar 2011 21:16:15 -0700 Subject: Witness the return of the memory-for-stability tradeoff on 2.x. --- CyteKit/WebViewController.mm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CyteKit/WebViewController.mm') diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index 7cb5979..522a31f 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 { -- cgit v1.2.3