Protect the appcache controllers from memory events.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 11 Mar 2011 00:36:40 +0000 (16:36 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 11 Mar 2011 00:56:49 +0000 (16:56 -0800)
MobileCydia.mm

index 07a2c0038ea1797808fe2d123f4cbce43adf595f..8d60efabb4e8d593e667080ecea65042bff2da9d 100644 (file)
@@ -4563,6 +4563,18 @@ static _H<NSMutableSet> 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];