From 47a40da6459dce3620f5ec132e87ef06925db3b4 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 8 Mar 2011 14:25:10 -0800 Subject: [PATCH] Gracefully recover from low-memory conditions. --- CyteKit/ViewController.mm | 2 +- CyteKit/WebViewController.mm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm index 9da9be8e..dc5dabb0 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 d5d4967f..964e5237 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 { -- 2.45.2