]> git.saurik.com Git - safemode-ios.git/commitdiff
Checkpointing thumb details.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 21 Jun 2009 02:29:59 +0000 (02:29 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 21 Jun 2009 02:29:59 +0000 (02:29 +0000)
MobileSafety.mm

index 367d06e00c76cd4cbefe01a3c0de541161db82db..38cd7e5a036ec5cfe007d1367af340beec223d5b 100644 (file)
@@ -193,6 +193,8 @@ MSHook(void, SBStatusBarTimeView$tile, SBStatusBarTimeView *self, SEL sel) {
 #define Dylib_ "/Library/MobileSubstrate/MobileSubstrate.dylib"
 
 extern "C" void MSInitialize() {
+    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+
     NSLog(@"MS:Warning: Entering Safe Mode");
 
     MSHookMessage(objc_getClass("SBButtonBar"), @selector(maxIconColumns), (IMP) &SBButtonBar$maxIconColumns, "ms$");
@@ -228,4 +230,6 @@ extern "C" void MSInitialize() {
         if (Method method = class_getInstanceMethod(_class, sel))
             method_setImplementation(method, (IMP) &SBIconController$showInfoAlertIfNeeded);
     }
+
+    [pool release];
 }