summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-06-21 02:29:59 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2009-06-21 02:29:59 +0000
commit1058605115ef6cf15fa658b736bcd9fbbd1aac51 (patch)
tree235f3de17f453c1cf85cf60579a47f0560726ada
parentdbbe0f326ffd44963497e60fbd53311312ab43de (diff)
Checkpointing thumb details.
-rw-r--r--MobileSafety.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/MobileSafety.mm b/MobileSafety.mm
index 367d06e..38cd7e5 100644
--- a/MobileSafety.mm
+++ b/MobileSafety.mm
@@ -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];
}