}
- (NSString *) substitutePackageNames:(NSString *)message {
- NSMutableArray *words([[message componentsSeparatedByString:@" "] mutableCopy]);
+ NSMutableArray *words([[[message componentsSeparatedByString:@" "] mutableCopy] autorelease]);
for (size_t i(0), e([words count]); i != e; ++i) {
NSString *word([words objectAtIndex:i]);
if (Package *package = [[Database sharedInstance] packageWithName:word])
}
+ (NSURLRequest *) requestWithHeaders:(NSURLRequest *)request {
- NSMutableURLRequest *copy([request mutableCopy]);
+ NSMutableURLRequest *copy([[request mutableCopy] autorelease]);
NSURL *url([copy URL]);
NSString *href([url absoluteString]);
} return;
}
- NSMutableArray *controllers = [[self viewControllers] mutableCopy];
+ NSMutableArray *controllers = [[[self viewControllers] mutableCopy] autorelease];
if (transient != nil) {
UINavigationController *navigation([[[UINavigationController alloc] init] autorelease]);
[navigation setViewControllers:[NSArray arrayWithObject:transient]];
[self disemulate];
int savedIndex = [[Metadata_ objectForKey:@"InterfaceIndex"] intValue];
- NSArray *saved = [[Metadata_ objectForKey:@"InterfaceState"] mutableCopy];
+ NSArray *saved = [[[Metadata_ objectForKey:@"InterfaceState"] mutableCopy] autorelease];
int standardIndex = 0;
NSArray *standard = [self defaultStartPages];
Class $NSURLConnection;
MSHook(id, NSURLConnection$init$, NSURLConnection *self, SEL _cmd, NSURLRequest *request, id delegate, BOOL usesCache, int64_t maxContentLength, BOOL startImmediately, NSDictionary *connectionProperties) {
- NSMutableURLRequest *copy([request mutableCopy]);
+ NSMutableURLRequest *copy([[request mutableCopy] autorelease]);
NSURL *url([copy URL]);