From 1058605115ef6cf15fa658b736bcd9fbbd1aac51 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 21 Jun 2009 02:29:59 +0000 Subject: Checkpointing thumb details. --- MobileSafety.mm | 4 ++++ 1 file changed, 4 insertions(+) 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]; } -- cgit v1.2.3