From: Jay Freeman (saurik) Date: Fri, 11 Mar 2011 00:36:40 +0000 (-0800) Subject: Protect the appcache controllers from memory events. X-Git-Tag: v1.1.0%b5~8 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/29bb09d7ebd2740681e58b7ad6e82e9caf117326 Protect the appcache controllers from memory events. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 07a2c003..8d60efab 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4563,6 +4563,18 @@ static _H Diversions_; } return self; } +@end + +@interface AppCacheController : CydiaWebViewController { +} + +@end + +@implementation AppCacheController + +- (void) didReceiveMemoryWarning { +} + @end /* }}} */ @@ -6431,6 +6443,9 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { return [NSURL URLWithString:@"cydia://home"]; } +- (void) didReceiveMemoryWarning { +} + - (void) aboutButtonClicked { UIAlertView *alert([[[UIAlertView alloc] init] autorelease]); @@ -9653,7 +9668,7 @@ _trace(); broken_ = [NSMutableArray arrayWithCapacity:4]; // XXX: I really need this thing... like, seriously... I'm sorry - [[[CydiaWebViewController alloc] initWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/appcache/", UI_]]] reloadData]; + [[[AppCacheController alloc] initWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/appcache/", UI_]]] reloadData]; window_ = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; [window_ orderFront:self];