diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-04-16 03:48:38 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-04-16 03:48:38 -0700 |
commit | 0c4fe0f48ff1555422b6d2a17d625e15bc5493e8 (patch) | |
tree | 74688b7e9ca534e7ab5fe750223d6cb15c9d276f | |
parent | 38eb4ea9ac7acfbe96bfd6b41d87ab8afd91ed71 (diff) |
You must autorelease mutableCopy.
-rw-r--r-- | MobileCydia.mm | 10 | ||||
m--------- | SDURLCache | 0 |
2 files changed, 5 insertions, 5 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index f11037f..a6b61fe 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4453,7 +4453,7 @@ static _H<NSMutableSet> Diversions_; } - (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]) @@ -4629,7 +4629,7 @@ static _H<NSMutableSet> Diversions_; } + (NSURLRequest *) requestWithHeaders:(NSURLRequest *)request { - NSMutableURLRequest *copy([request mutableCopy]); + NSMutableURLRequest *copy([[request mutableCopy] autorelease]); NSURL *url([copy URL]); NSString *href([url absoluteString]); @@ -6896,7 +6896,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi } 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]]; @@ -10238,7 +10238,7 @@ _trace(); [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]; @@ -10391,7 +10391,7 @@ MSHook(void *, CFXPreferencesPropertyListSource$createPlistFromDisk, CFXPreferen 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]); diff --git a/SDURLCache b/SDURLCache -Subproject fc6417ef3ce6cc1749e5313168f512290788dff +Subproject 0544cf53dd9cfdb33d55df13668869b341d3253 |