From 1e76e87db5964bc41362282d49cfdeb3169f7455 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 20 Mar 2011 21:16:15 -0700 Subject: [PATCH] Witness the return of the memory-for-stability tradeoff on 2.x. --- CyteKit/WebViewController.mm | 6 ++++++ 1 file changed, 6 insertions(+) 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 { -- 2.45.2