summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-06-21 11:32:11 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-06-21 11:32:11 +0000
commita938d168bbfaa67646c1b5fadad0b95303c6ed42 (patch)
tree246f159892e9f52f39a97991c0cac6b7cbeb992f
parent639180687601c7355ec440e90f69bd05d768d34f (diff)
Fix a memory leak of an alert item in safe mode.
-rw-r--r--MobileSafety.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/MobileSafety.mm b/MobileSafety.mm
index 02b9469..95040c8 100644
--- a/MobileSafety.mm
+++ b/MobileSafety.mm
@@ -1,5 +1,5 @@
/* Cydia Substrate - Meta-Library Insert for iPhoneOS
- * Copyright (C) 2008-2009 Jay Freeman (saurik)
+ * Copyright (C) 2008-2010 Jay Freeman (saurik)
*/
/*
@@ -98,7 +98,7 @@ static void MSAlert() {
}
if ($SBAlertItemsController != nil)
- [[$SBAlertItemsController sharedInstance] activateAlertItem:[[$SafeModeAlertItem alloc] init]];
+ [[$SBAlertItemsController sharedInstance] activateAlertItem:[[[$SafeModeAlertItem alloc] init] autorelease]];
}
MSHook(void, SBStatusBar$touchesEnded$withEvent$, SBStatusBar *self, SEL sel, id touches, id event) {