summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-08 14:25:10 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-08 14:25:10 -0800
commit47a40da6459dce3620f5ec132e87ef06925db3b4 (patch)
treeac4c5b5c97df02a99be9e30d8e006c716bf0ccab
parent78de2878cd72973d386b3ea92a93188b6de8ec84 (diff)
Gracefully recover from low-memory conditions.v1.1.0%b2
-rw-r--r--CyteKit/ViewController.mm2
-rw-r--r--CyteKit/WebViewController.mm2
2 files changed, 3 insertions, 1 deletions
diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm
index 9da9be8..dc5dabb 100644
--- a/CyteKit/ViewController.mm
+++ b/CyteKit/ViewController.mm
@@ -84,7 +84,7 @@ extern bool IsWildcat_;
}
- (void) releaseSubviews {
- // Do nothing.
+ loaded_ = NO;
}
- (void) setView:(UIView *)view {
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index d5d4967..964e523 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -863,6 +863,8 @@ float CYScrollViewDecelerationRateNormal;
[table setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
[webview_ setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
+
+ ready_ = false;
}
- (void) releaseSubviews {