Permalink
Browse files

add pool

  • Loading branch information...
r-plus committed Jan 31, 2011
1 parent 3e897e0 commit bb7c99ea8ee3709067e50250b44f539ad31fb712
Showing with 5 additions and 1 deletion.
  1. +5 −1 Tweak.xm
View
@@ -15,12 +15,16 @@ static float durMulti = 1.0;
__attribute__((constructor))
static void FakeClockUp_initializer()
{
- NSDictionary* udDict = [NSDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/jp.novi.FakeClockUp.plist"];
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+
+ NSDictionary *udDict = [NSDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/jp.novi.FakeClockUp.plist"];
if (udDict) {
float durm = [[udDict objectForKey:@"duration"] floatValue];
if (durm != 0.0 && durm >= 0.001 && durm <= 20) {
durMulti = durm;
}
}
+
+ [pool release];
}

0 comments on commit bb7c99e

Please sign in to comment.