summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {