From 29bb09d7ebd2740681e58b7ad6e82e9caf117326 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 10 Mar 2011 16:36:40 -0800 Subject: [PATCH] Protect the appcache controllers from memory events. --- MobileCydia.mm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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]; -- 2.45.2