Jarin Udom
Committed by Ben Copsey

Fixed memory leaks

Signed-off-by: Ben Copsey <ben@allseeing-i.com>
... ... @@ -79,6 +79,7 @@ NSLock *dialogLock = nil;
[label setTextAlignment:UITextAlignmentCenter];
[titleBar addSubview:label];
[label release];
[[self loginDialog] addSubview:titleBar];
// Setup the toolbar
... ... @@ -103,6 +104,7 @@ NSLock *dialogLock = nil;
[label setTextAlignment:UITextAlignmentCenter];
[toolbar addSubview:label];
[label release];
UIBarButtonItem *labelButton = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:nil action:nil] autorelease];
[labelButton setCustomView:label];
... ...
... ... @@ -2488,7 +2488,7 @@ static NSRecursiveLock *delegateAuthenticationLock = nil;
// Work around <rdar://problem/5530166>. This dummy call to
// CFNetworkCopyProxiesForURL initialise some state within CFNetwork
// that is required by CFNetworkCopyProxiesForAutoConfigurationScript.
(void) CFNetworkCopyProxiesForURL((CFURLRef)theURL, NULL);
CFRelease(CFNetworkCopyProxiesForURL((CFURLRef)theURL, NULL));
NSStringEncoding encoding;
NSError *err = nil;
... ...