summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-10 16:36:40 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-10 16:56:49 -0800
commit29bb09d7ebd2740681e58b7ad6e82e9caf117326 (patch)
tree00ce1a2032c000bfdae4e1265e8e01aae12ccd0e
parent5db5891a5f495b93fbee387cc93034d2ed297af0 (diff)
Protect the appcache controllers from memory events.
-rw-r--r--MobileCydia.mm17
1 files changed, 16 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 07a2c00..8d60efa 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -4564,6 +4564,18 @@ static _H<NSMutableSet> Diversions_;
}
@end
+
+@interface AppCacheController : CydiaWebViewController {
+}
+
+@end
+
+@implementation AppCacheController
+
+- (void) didReceiveMemoryWarning {
+}
+
+@end
/* }}} */
// CydiaScript {{{
@@ -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];