summaryrefslogtreecommitdiff
path: root/CyteKit
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-20 21:16:15 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-20 21:16:15 -0700
commit1e76e87db5964bc41362282d49cfdeb3169f7455 (patch)
tree1d7ede480b8f8b11d1a9238b3093868f1094eec9 /CyteKit
parent4058b165cce38c5f5e7d1670d63e3f711443e329 (diff)
Witness the return of the memory-for-stability tradeoff on 2.x.
Diffstat (limited to 'CyteKit')
-rw-r--r--CyteKit/WebViewController.mm6
1 files changed, 6 insertions, 0 deletions
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 {