diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-06-21 11:32:11 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-06-21 11:32:11 +0000 |
commit | a938d168bbfaa67646c1b5fadad0b95303c6ed42 (patch) | |
tree | 246f159892e9f52f39a97991c0cac6b7cbeb992f | |
parent | 639180687601c7355ec440e90f69bd05d768d34f (diff) |
Fix a memory leak of an alert item in safe mode.
-rw-r--r-- | MobileSafety.mm | 4 |
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) { |