From: Jay Freeman (saurik) Date: Tue, 8 Mar 2011 22:25:10 +0000 (-0800) Subject: Gracefully recover from low-memory conditions. X-Git-Tag: v1.1.0%b2^0 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/47a40da6459dce3620f5ec132e87ef06925db3b4 Gracefully recover from low-memory conditions. --- 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 {