summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-06-06 01:37:47 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-06-06 01:37:47 -0700
commit111ee7bc600f63fee72bef7ab614f37aa6419491 (patch)
tree4ca8dffe3f036a152a3ea208b4cf7f88fc678f01 /MobileCydia.mm
parent2b49cff9c356b460efefc1786a13002ad5f028c5 (diff)
parent0dbada51f076f376e3ea625de5b6a0bced0412fe (diff)
Merge branch 'master' of git.saurik.com:cydia
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm10
1 files changed, 5 insertions, 5 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index ea858e9..1acb5ea 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -4470,7 +4470,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])
@@ -4646,7 +4646,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]);
@@ -6902,7 +6902,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]];
@@ -10254,7 +10254,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];
@@ -10407,7 +10407,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]);